Part Number Hot Search : 
SS50AT SF501GP JE700 1N6139 3EZ51 LV320MH 2SA720 OZ960D
Product Description
Full Text Search
 

To Download W83877TF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  W83877TF winbond i/o
winbond i/o W83877TF publication release date: march 1998 - 1 - preliminary version 0.61 general description the W83877TF is an enhanced version from winbond's most popular i/o chip w83877f --- which integrates the disk drive adapter, serial port (uart), irda 1.0 sir, parallel port, configurable plug- and-play registers for the whole chip --- plus additional powerful features: acpi / legacy power management, serial irq, and irq sharing . the disk drive adapter functions of W83877TF include a floppy disk controller compatible with the industry standard 82077/765, data separator, write pre-compensation circuit, decode logic, data rate selection, clock generator, drive interface control logic, interrupt and dma logic. the wide range of functions integrated into the W83877TF greatly reduces the number of components required for interfacing with floppy disk drives. the W83877TF supports four 360k, 720k, 1.2m, 1.44m, or 2.88m disk drives and data transfer rates of 250 kb/s, 300 kb/s, 500 kb/s,1 mb/s, and 2 mb/s. the W83877TF provides two high-speed serial communication ports (uarts), one of which supports serial infrared communication. each uart includes a 16-byte send/receive fifo, a programmable baud rate generator, complete modem control capability, and a processor interrupt system. one of the uarts support infrared (ir) irda1.0. both uarts provide legacy speed with baud rate up to 115.2k and provide advanced speed with baud rate up to 230k , 460k , and 921k bps which support higher speed modems. the W83877TF supports one pc-compatible printer port (spp), bi-directional printer port (bpp) and also enhanced parallel port (epp) and extended capabilities port (ecp). through the printer port interface pins, also available are: extension fdd mode and extension 2fdd mode allowing one or two external floppy disk drives to be connected. this function is especially valuable for notebook computer applications. winbond W83877TF provides functions that comply with acpi (advanced configuration and power interface), which includes support of legacy and acpi power management through smi or sci function pins. one 24-bits power management timer is implemented with the carry notify interrupt. W83877TF also has auto power management mode to reduce the power consumption. the serial irq for pci architecture is supported, isa irqs (irq1~irq15) can be cascaded into one irqser pin. W83877TF also features isa bus irq sharing and allows two or more devices to share the same irq pin. W83877TF is made to fully comply with microsoft tm pc97 hardware design guide . irqs, dmas, and i/o space resources are flexible to adjust to meet isa pnp requirement. moreover W83877TF is made to meet the specification of pc97's requirement in the power management: acpi and dpm (device power management). the configuration registers support mode selection, function enable/disable, and power down function selection. furthermore, the configurable pnp registers are compatible with the plug-and-play feature demand of windows 95 tm , which makes system resource allocation more efficient than ever. another benefit of W83877TF is that it is pin-to-pin compatible to w83877f, and all of the 100-pin winbond i/o ic family. thus makes the design of applications very convenient and flexible.
W83877TF publication release date: march 1998 - 40 - version 0.61 3.2 register address table 3-1 uart register bit map b it n umber r egister a ddress b ase 0 1 2 3 4 5 6 7 8 bdlab = 0 r eceiver b uffer r egister (read only) rbr rx data bit 0 rx data bit 1 rx data bit 2 rx data bit 3 rx data bit 4 rx data bit 5 rx data bit 6 rx data bit 7 8 bdlab = 0 t ransmitter b uffer r egister ( write only) tbr tx data bit 0 tx data bit 1 tx data bit 2 tx data bit 3 tx data bit 4 tx data bit 5 tx data bit 6 tx data bit 7 9 bdlab = 0 i nterrupt c ontrol r egister icr rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) usr interrupt enable (eusri) hsr interrupt enable (ehsri) 0 0 0 0 a i nterrupt s tatus r egister ( read only ) isr "0" if interrupt pending interrupt status bit (0) interrupt status bit (1) interrupt status bit (2)** 0 0 fifos enabled ** fifos enabled ** a u art fifo c ontrol r egister (write only) ufr fifo enable rcvr fifo reset xmit fifo reset dma mode select reserved reversed rx interrupt active level (lsb) rx interrupt active level (msb) b u art c ontrol r egister ucr data length select bit 0 (dls0) data length select bit 1 (dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable pbfe) set silence enable (sse) baud rate divisor latch access bit (bdlab) c h andshake c ontrol r egister hcr data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable 0 0 0 d u art s tatus r egister usr rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) tbr empty (tbre) tsr empty (tsre) rx fifo error indication (rfei) ** e h andshake s tatus r egister hsr cts toggling (tcts) dsr toggling (tdsr) ri falling edge (feri) dcd toggling (tdcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) f u ser d efined r egister udr bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 8 bdlab = 1 b audrate d ivisor l atch l ow bll bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 9 bdlab = 1 b audrate d ivisor l atch h igh bhl bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 *: bit 0 is the least significant bit. the least significant bit is the first bit serially transmitted or received. **: these bits are always 0 in 16450 mode.
W83877TF publication release date: march 1998 - 41 - version 0.61 3.2.1 uart control register (ucr) (read/write) the uart control register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection. 1 2 3 4 5 6 7 0 data length select bit 0 (dls0) data length select bit 1(dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable (pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab) bit 7: bdlab. when this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baud rate generator during a read or write operation. when this bit is reset, the receiver buffer register, the transmitter buffer register, or the interrupt control register can be accessed. bit 6: sse. a logical 1 forces the serial output (sout) to a silent state (a logical 0). only sout is affected by this bit; the transmitter is not affected. bit 5: pbfe. when pbe and pbfe of ucr are both set to a logical 1, (1) if epe is a logical 1, the parity bit is fixed as a logical 0 to transmit and check. (2) if epe is a logical 0, the parity bit is fixed as a logical 1 to transmit and check. bit 4: epe. this bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. when this bit is set, an even number of logic 1's are sent or checked. when the bit is reset, an odd number of logic 1's are sent or checked. bit 3: pbe. when this bit is set, the position between the last data bit and the stop bit of the sout will be stuffed with the parity bit at the transmitter. for the receiver, the parity bit in the same position as the transmitter will be detected. bit 2: msbe. this bit defines the number of stop bits in each serial character that is transmitted or received. (1) if msbe is set to a logical 0, one stop bit is sent and checked. (2) if msbe is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) if msbe is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. bits 0 and 1: dls0, dls1. these two bits define the number of data bits that are sent or checked in each serial character.
W83877TF publication release date: march 1998 - 42 - version 0.61 table 3-2 word length definition dls1 dls0 data length 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 3.2.2 uart status register (usr) (read/write) this 8-bit register provides information about the status of the data transfer during communication. 1 2 3 4 5 6 7 0 rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) transmitter buffer register empty (tbre) transmitter shift register empty (tsre) rx fifo error indication (rfei) bit 7: rfei. in 16450 mode, this bit is always set to a logic 0. in 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the fifo. in 16550 mode, this bit is cleared by reading from the usr if there are no remaining errors left in the fifo. bit 6: tsre. in 16450 mode, when tbr and tsr are both empty, this bit will be set to a logical 1. in 16550 mode, if the transmit fifo and tsr are both empty, it will be set to a logical 1. other than these two cases, this bit will be reset to a logical 0. bit 5: tbre. in 16450 mode, when a data character is transferred from tbr to tsr, this bit will be set to a logical 1. if etrei of icr is a logical 1, an interrupt will be generated to notify the cpu to write the next data. in 16550 mode, this bit will be set to a logical 1 when the transmit fifo is empty. it will be reset to a logical 0 when the cpu writes data into tbr or fifo. bit 4: sbd. this bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0.
W83877TF publication release date: march 1998 - 43 - version 0.61 bit 3: nser. this bit is set to a logical 1 to indicate that the received data have no stop bit. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 2: pber. this bit is set to a logical 1 to indicate that the parity bit of received data is wrong. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 1: oer. this bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by the cpu. in 16550 mode, it indicates the same condition instead of fifo full. when the cpu reads usr, it will clear this bit to a logical 0. bit 0: rdr. this bit is set to a logical 1 to indicate received data are ready to be read by the cpu in the rbr or fifo. after no data are left in the rbr or fifo, the bit will be reset to a logical 0. 3.2.3 handshake control register (hcr) (read/write) this register controls the pins of the uart used for handshaking peripherals such as modem, and controls the diagnostic mode of the uart. 0 0 0 0 1 2 3 4 5 6 7 data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable bit 4: when this bit is set to a logical 1, the uart enters diagnostic mode by an internal loopback, as follows: (1) sout is forced to a logical 1, and sin is isolated from the communication link instead of the tsr. (2) modem output pins are set to their inactive state. (3) modem in put pins are isolated from the communication link and connect internally as dtr (bit 0 of hcr) ? dsr , rts ( bit 1 of hcr) ? cts , loopback ri input ( bit 2 of hcr) ? ri and irq enable ( bit 3 of hcr) ? dcd . aside from the above connections, the uart operates normally. this method allows the cpu to test the uart in a convenient way.
W83877TF publication release date: march 1998 - 44 - version 0.61 bit 3: the uart interrupt output is enabled by setting this bit to a logic 1. in the diagnostic mode this bit is internally connected to the modem control input dcd . bit 2: this bit is used only in the diagnostic mode. in the diagnostic mode this bit is internally connected to the modem control input ri . bit 1: this bit controls the rts output. the value of this bit is inverted and output to rts . bit 0: this bit controls the dtr output. the value of this bit is inverted and output to dtr . 3.2.4 handshake status register (hsr) (read/write) this register reflects the current state of four input pins for handshake peripherals such as a modem and records changes on these pins. 1 2 3 4 5 6 7 0 ri falling edge (feri) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) cts toggling (tcts) dsr toggling (tdsr) dcd toggling (tdcd) bit 7: this bit is the opposite of the dcd input. this bit is equivalent to bit 3 of hcr in loopback mode. bit 6: this bit is the opposite of the ri input. this bit is equivalent to bit 2 of hcr in loopback mode. bit 5: this bit is the opposite of the dsr input. this bit is equivalent to bit 0 of hcr in loopback mode. bit 4: this bit is the opposite of the cts input. this bit is equivalent to bit 1 of hcr in loopback mode. bit 3: tdcd. this bit indicates that the dcd pin has changed state after hsr was read by the cpu. bit 2: feri. this bit indicates that the ri pin has changed from low to high state after hsr was read by the cpu. bit 1: tdsr. this bit indicates that the dsr pin has changed state after hsr was read by the cpu. bit 0: tcts. this bit indicates that the cts pin has changed state after hsr was read by the cpu.
W83877TF publication release date: march 1998 - 45 - version 0.61 3.2.5 uart fifo control register (ufr) (write only) this register is used to control the fifo functions of the uart. 1 2 3 4 5 6 7 0 fifo enable receiver fifo reset transmitter fifo reset dma mode select reserved reserved rx interrupt active level (lsb) rx interrupt active level (msb) bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify the cpu to read the data from the fifo. table 3-3 fifo trigger level bit 7 bit 6 rx fifo interrupt active level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to logic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 1: setting this bit to a logical 1 resets the rx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 0: this bit enables the 16550 (fifo) mode of the uart. this bit should be set to a logical 1 before other bits of ufr are programmed.
W83877TF publication release date: march 1998 - 46 - version 0.61 3.2.6 interrupt status register (isr) (read only) this register reflects the uart interrupt status, which is encoded by different interrupt sources into 3 bits. 1 2 3 4 5 6 7 0 0 if interrupt pending interrupt status bit 0 interrupt status bit 1 interrupt status bit 2 fifos enabled fifos enabled 0 0 bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logic 0. bit 3: in 16450 mode, this bit is 0. in 16550 mode, both bit 3 and 2 are set to a logical 1 when a time- out interrupt is pending. bit 2, 1: these two bits identify the priority level of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interrupt pending. if one of the interrupt sources has occurred, this bit will be set to a logical 0. table 3-4 interrupt control function isr interrupt set and function bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first uart receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data timeout data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) 0 0 0 0 fourth handshake status 1. tcts = 1 2. tdsr = 1 3. feri = 1 4. tdcd = 1 read hsr ** bit 3 of isr is enabled when bit 0 of ufr is logical 1.
W83877TF publication release date: march 1998 - 47 - version 0.61 3.2.7 interrupt control register (icr) (read/write) this 8-bit register allows the five types of controller interrupts to activate the interrupt output signal separately. the interrupt system can be totally disabled by resetting bits 0 through 3 of the interrupt control register (icr). a selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1. 0 0 0 1 2 3 4 5 6 7 0 0 rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) uart receive status interrupt enable (eusri) handshake status interrupt enable (ehsri) bit 7-4: these four bits are always logic 0. bit 3: ehsri. setting this bit to a logical 1 enables the handshake status register interrupt. bit 2: eusri. setting this bit to a logical 1 enables the uart status register interrupt. bit 1: etbrei. setting this bit to a logical 1 enables the tbr empty interrupt. bit 0: erdri. setting this bit to a logical 1 enables the rbr data ready interrupt. 3.2.8 programmable baud generator (bll/bhl) (read/write) two 8-bit registers, bll and bhl, compose a programmable baud generator that uses 24 mhz to generate a 1.8461 mhz frequency and divides it by a divisor from 1 to 2 16 -1. the output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. the table below illustrates the use of the baud generator with a frequency of 1.8461 mhz. in high-speed uart mode (refer to cr0c bit7 and cr0c bit6), the programmable baud generator directly uses 24 mhz and the same divisor as the normal speed divisor. in high-speed mode, the data transmission rate can be as high as 1.5m bps.
W83877TF publication release date: march 1998 - 48 - version 0.61 3.2.9 user-defined register (udr) (read/write) this is a temporary register that can be accessed and defined by the user. table 3-5 baud rate table baud rate using 24 mhz to generate 1.8461 mhz desired baud rate decimal divisor used to generate 16x clock percent error difference between desired and actual 50 2304 ** 75 1536 ** 110 1047 0.18% 134.5 857 0.099% 150 768 ** 300 384 ** 600 192 ** 1200 96 ** 1800 64 ** 2000 58 0.53% 2400 48 ** 3600 32 ** 4800 24 ** 7200 16 ** 9600 12 ** 19200 6 ** 38400 3 ** 57600 2 ** 115200 1 ** 230400 4 note 1 ** 460800 2 note 1 ** 921600 1 note 1 ** 1.5m 1 note 2 0% note 1: only use in high speed mode, when fasta/fastb bits are set (refer to cr19 bit1 and cr19 bit0). note 2: only use in high speed mode, when tura/turb bits are set (refer to cr0c bit7 and bit6). ** the percentage error for all baud rates, except where indicated otherwise, is 0.16%
W83877TF publication release date: march 1998 - 2 - version 0.61 features general: plug & play 1.0a compliant support 8 irqs (isa), or 15 irqs (serial irq), 3 dma channels, and 480 re-locatable address capable of isa bus irq sharing comply with microsoft pc 97 hardware design guide support dpm (device power management), acpi report acpi status interrupt by sci signal from sci pin, serial irq irqser pin, or irq a~h pins single 24mhz/48mhz clock input fdc: compatible with ibm pc at disk drive systems variable write pre-compensation with track selectable capability dma enable logic supports floppy disk drives and tape drives detects all overrun and underrun conditions built-in address mark detection circuit to simplify the read electronics fdd an ti-virus functions with software write protect and fdd write enable signal (write data signal was forced to be inactive) supports up to four 3.5-inch or 5.25-inch floppy disk drives completely compatible with industry standard 82077 360k/720k/1.2m/1.44m/2.88m format; 250k, 300k, 500k, 1m, 2m bps data transfer rate supports vertical recording format sup port 3-mode fdd, and its win95 driver 16-byte data fifos uart: two high-speed 16550 compatible uarts with 16-byte send/receive fifos midi compatible fully programmable serial-interface characteristics: - 5, 6, 7 or 8-bit characters - even, odd or no parity bit generation/detection - 1, 1.5 or 2 stop bits generation internal diagnostic capabilities: - loop-back controls for communications link fault isolation - break, parity, overrun, framing error simulation programmable baud generator allows division of 1.8461 mhz and 24 mhz by 1 to (2 16 -1) maximum baud rate is up to 921k bps for 14.768mhz and 1.5m bps for 24mhz
W83877TF publication release date: march 1998 - 3 - version 0.61 infrared: supports irda version 1.0 sir protocol with maximum baud rate up to 115.2k bps supports sharp ask-ir protocol with maximum baud rate up to 57600 bps parallel port: compatible with ibm parallel port supports ps/2 compatible bi-directional parallel port supports enhanced parallel port (epp) - compatible with ieee 1284 specification supports extended capabilities port (ecp) - compatible with ieee 1284 specification extension fdd mode supports disk drive b; and extension 2fdd mode supports disk drives a and b through parallel port enhanced printer port back-drive current protection others: programmable configuration settings immediate or automatic power-down mode f or the power management all hardware power-on settings have internal pull-up or pull-down resistors as default value dedicated infrared communication pins package: 100-pin qfp (W83877TF), and also 100-pin lqfp (w83877td)
W83877TF publication release date: march 1998 - 4 - version 0.61 pin configuration / m o b / m o a / t r a k 0 n w p / d s k c h g a 1 0 / r d a t a d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 g n d / i o w / i o r a e n a 9 a 8 a 7 a 6 a 5 v d d a 4 a 3 a 2 a 1 a 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 rib dcdb dsrb ctsb dtrb rtsb irq_c soutb sinb dack_a gnd drq_a souta irq_d rtsa dtra ctsa dsra dcda ria i r q g / c s / s c i d r q | c i o c h r d y m r c l k i n / s m i p d 0 p d 1 p d 2 p d 3 p d 4 v d d p d 5 p d 6 p d 7 / d a c k | c / s t b / a f d / i n i t / s l i n i r q | e b u s y g n d / a c k p e s l c t / e r r s i n a index step dsa dsb we wd rwc head dir gnd irq_h irq_b irqin irrx2 irtx2 irq_a tc dack_b irq_f drq_b
W83877TF publication release date: march 1998 - 5 - version 0.61 1.0 pin description (note: refer to section 9.2 dc characteristics for details.) i/o8tc - ttl level output pin with 8 ma source-sin k capability; cmos level input voltage i/o12t - ttl level bi-directional pin with 12 ma source-sink capability i/o24t - ttl level bi-directional pin with 24 ma source-sink capability out8t - ttl level output pin with 8 ma source-sink capability out12t - ttl level output pin with 12 ma source-sink capability od12 - open-drain output pin with 12 ma sink capability od24 - open-drain output pin with 24 ma sink capability int - ttl level input pin ints - ttl level schmitt-triggered input pin inc - cmos l evel input pin incs - cmos level schmitt-triggered input pin 1.1 host interface symbol pin i/o function d0 - d7 66-73 i/o 24t system data bus bits 0-7. a0 - a9 51-55 57-61 in t system address bus bits 0-9. a10 75 in t in ecp mode, this pin is the a10 address input. iochrdy 5 od 24 in epp mode, this pin is the io channel ready output to extend the host read/write cycle. mr 6 in ts master reset. active high. mr is low during normal operations. cs 2 in t active low chip select signal. aen 62 in t system address bus enable. ior 63 in ts cpu i/o read signal. iow 64 in ts cpu i/o write signal. drq_b 100 out 12t dma request signal b. dack_ b 98 in ts dma acknowledge signal b.
W83877TF publication release date: march 1998 - 6 - version 0.61 1.1 host interface, continued symbol pin i/o function drq_c 4 out 12t dma request signal c. dack_ c 18 in ts dma acknowledge signal c. tc 97 in ts terminal count. when active, this pin indicates termination of a dma transfer. irqin 93 in t interrupt request input for irq routing ; for example , the irq12 can be routed into this port when ps/2 mouse is not installed. irq_ a 96 out 12t interrupt request signal a, when cr16 bit 5 (g1iqsel) = 0. gio1 i/o 12t general purpose i/o port 1, when cr16 bit 5 (g1iqsel) = 1. irq_ b 92 out 12t interrupt request signal b, when cr16 bit 4 (g0iqsel) = 0. gio0 i/o 12t general purpose i/o port 0, when cr16 bit 4 (g0iqsel) = 1. irq_c 44 out 12t interrupt request signal c. irq_d 37 out 12t interrupt request signal d. irq_e 23 out 12t interrupt request signal e. irq_f 99 out 12t interrupt request signal f. irq_g 1 out 12t interrupt request signal g. pciclk in t pci clock input, when the serial irq function is selected. irq_h 91 out 12t interrupt request signal h. serirq i/o 12t serial interrupt input/output, when the serial irq mode is selected by setting irqmods bit in cr31 register. sci 3 od 12 for the acpi power management, sci is active low 200ns for the power management events, which generate an sci interrupt in the acpi mode. clkin 7 in t 24mhz/48mhz clock input. clkinsel bit in cr2c register should be correctly reset/set according to the input frequency. smi 8 od 12 for the legacy power management, the smi is active low 200ns for the power management events, which generate an smi interrupt in the legacy power management mode. this smi output is enabled by setting the smi_en bit in cr3a register. dack_ a 41 in ts dma acknowledge signal a. drq_a 39 out 12t dma request signal a.
W83877TF publication release date: march 1998 - 7 - version 0.61 1.2 serial port interface symbol pin i/o function sina sinb/irrx1 30 42 in t serial input. it is used to receive serial data from the communication link. ria rib 31 50 in t ring indicator. an active low indicates that a ring signal is being received by the modem or data set. dcda dcdb 32 49 in t data carrier detect. an active low indicates the modem or data set has detected a data carrier. dsra dsrb 33 48 in t data set ready. an active low indicates the modem or data set is ready to establish a communication link and transfer data to the uart. ctsa 34 in t clear to send. it is the modem control input. ctsb 47 the function of these pins can be tested by reading bit 4 of the handshake status register. dtra 35 i/o 8tc uart a data terminal ready. an active low informs the modem or data set that the controller is ready to communicate. phefras during power-on reset, this pin is pulled down internally and is defined as phefras, which provides the power-on value for cr16 bit 0 (hefras). while it is at low, it selects the efer (extended functions enable register) to be 250h. while it is at high, it selects the efer to be 3f0h. a 4.7 k w is recommended when intends to pull up at power-on reset. rtsa 36 i/o 8tc uart a request to send. an active low informs the modem or data set that the controller is ready to send data. ppnpcvs during power-on reset, this pin is pulled up internally and is defined as ppnpcvs, which provides the power-on value for cr16 bit 2 (pnpcvs). while it is at low, all pnp-related registers (cr20 to cr29) are all set to be 0s. while it is at high, all pnp-related registers (cr20 to cr 29) are set to default values. a 4.7 k w is recommended when intends to pull down at power-on reset. souta 38 i/o 8tc uart a serial output. it is used to transmit serial data out to the communication link. penfdc during power-on reset, this pin is pulled up internally and used to enable or disable the fdc. while it is at low, fdc pnp-related register (cr20) is set to be 0, i.e. fdc is disabled. while it is at high, cr20 is set to the default value, i.e. fdc is enabled. a 4.7 k w is recommended when intends to pull down at power-on reset.
W83877TF publication release date: march 1998 - 8 - version 0.61 1.2 serial port interface ,continued symbol pin i/o function soutb irtx1 pirqmds 43 i/o 8tc uart b serial output. it is used to transmit serial data out to the communication link. during power-on reset, this pin is pulled down internally and is defined as pirqmds to select the irq mode. while it is at low, irq pins can be set to normal mode or irq sharing mode which decided by cr18. if it is at high, the serial irq mode is selected. a 4.7 k w is recommended when intending to pull up at power-on reset. rtsb 45 i/o 8tc uart b request to send. an active low informs the modem or data set that the controller is ready to send data. pgoiqsel during power-on reset, this pin is pulled down internally and is defined as pgoiqsel, which provides the power-on value for cr16 bit 4 and bit 5 (g0iqsel & g1iqsel). while it is at low, pins 92 and 96 function as irq pins irq_b,irq_a respectively. while it is at high, pins 92 and 96 function as general purpose i/o pins gio0,gio1 respectively. a 4.7 k w is recommended when intends to pull up at power-on reset. dtrb 46 i/o 8tc uart b data terminal ready. an active low informs the modem or data set that the controller is ready to communicate. irtx2 95 out 12t functions as a infrared data transmission line. irrx2 94 in t functions as a infrared data receiving line. 1.3 multi-mode parallel port the following pins have six functions, which are controlled by bits prtmod0, prtmod1, and prtmod2 of cr0 and cr9 (refer to section 8.0, extended functions). symbol pin i/o function busy 24 in t printer mode: busy an active high input indicates that the printer is not ready to receive data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: mob 2 this pin is for extension fdd b; the function of this pin is the same as that of the mob pin. od 12 extension 2fdd mode: mob 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the mob pin.
W83877TF publication release date: march 1998 - 9 - version 0.61 1.3 multi-mode parallel port, continued symbol pin i/o function ack 26 in t printer mode: ack an active low input on this pin indicates that the printer has received data and is ready to accept more data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dsb 2 this pin is for the extension fdd b; its functions are the same as those of the dsb pin. od 12 extension 2fdd mode: dsb 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the dsb pin. pe 27 in t printer mode: pe an active high input on this pin indicates that the printer has detected the end of the paper. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: wd 2 this pin is for extension fdd b; its function is the same as that of the wd pin. od 12 extension 2fdd mode: wd 2 this pin is for extension fdd a and b; this function of this pin is the same as that of the wd pin. slct 28 in t printer mode: slct an active high input on this pin indicates that the printer is selected. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: we2 this pin is for extension fdd b; its functions are the same as those of the we pin. od 12 extension 2fdd mode: we 2 this pin is for extension fdd a and b; this function of this pin is the same as that of the we pin.
W83877TF publication release date: march 1998 - 10 - version 0.61 1.3 multi-mode parallel port, continued symbol pin i/o function err 29 in t printer mode: err an active low input on this pin indicates that the printer has encountered an error condition. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: head 2 this pin is for extension fdd b; its function is the same as that of the head pin. od 12 extension 2fdd mode: head 2 this pin is for extension fdd a and b; its function is the same as that of the head pin. slin 22 od 12 printer mode: slin output line for detection of printer selection. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: step 2 this pin is for extension fdd b; its function is the same as that of the step pin. od 12 extension 2fdd mode: step 2 this pin is for extension fdd a and b; its function is the same as that of the step pin . init 21 od 12 printer mode: init output line for the printer initialization. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dir 2 this pin is for extension fdd b; its function is the same as that of the dir pin. od 12 extension 2fdd mode: dir 2 this pin is for extension fdd a and b; its function is the same as that of the dir pin.
W83877TF publication release date: march 1998 - 11 - version 0.61 1.3 multi-mode parallel port, continued symbol pin i/o function afd 20 od 12 printer mode: afd an active low output from this pin causes the printer to auto feed a line after a line is printed. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: rwc 2 this pin is for extension fdd b; its function is the same as that of the rwc pin. od 12 extension 2fdd mode: rwc 2 this pin is for extension fdd a and b; its function is the same as that of the rwc pin. stb 19 od 12 printer mode: stb an active low output is used to latch the parallel data into the printer. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - - extension fdd mode: nc pin extension 2fdd mode: nc pin pd0 9 i/o 24t printer mode: pd0 parallel port data bus bit 0. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: index 2 this pin is for extension fdd b; the function of this pin is the same as that of the index pin. this pin is pulled high internally. in t extension 2fdd mode: index 2 this pin is for extension fdd a and b; this function of this pin is the same as index pin. this pin is pulled high internally.
W83877TF publication release date: march 1998 - 12 - version 0.61 1.3 multi-mode parallel port, continued symbol pin i/o function pd1 10 i/o 24t printer mode: pd1 parallel port data bus bit 1. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: trak 02 this pin is for extension fdd b; the function of this pin is the same as that of the trak 0 pin. this pin is pulled high internally. in t extension. 2fdd mode: trak 02 this pin is for extension fdd a and b; this function of this pin is the same as trak 0 pin. this pin is pulled high internally. pd2 11 i/o 24t printer mode: pd2 parallel port data bus bit 2. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: wp 2 this pin is for extension fdd b; the function of this pin is the same as that of the wp pin. this pin is pulled high internally. in t extension. 2fdd mode: wp 2 this pin is for extension fdd a and b; this function of this pin is the same as that of the wp pin. this pin is pulled high internally. pd3 12 i/o 24t printer mode: pd3 parallel port data bus bit 3. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: rdata 2 motor on b for extension fdd b; the function of this pin is the same as that of the rdata pin. this pin is pulled high internally. in t extension 2fdd mode: rdata 2 this pin is for extension fdd a and b; this function of this pin is the same as that of the rdata pin. this pin is pulled high internally.
W83877TF publication release date: march 1998 - 13 - version 0.61 1.3 multi-mode parallel port, continued symbol pin i/o function pd4 13 i/o 24t printer mode: pd4 parallel port data bus bit 4. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: dskchg 2 drive select b for extension fdd b; the function of this pin is the same as that of dskchg pin. this pin is pulled high internally. in t extension 2fdd mode: dskchg 2 this pin is for extension fdd a and b; this function of this pin is the same as that of the dskchg pin. this pin is pulled high internally. pd5 14 i/o 24t i/o 24t i/o 24t printer mode: pd5 parallel port data bus bit 5. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri-state output. extension 2fdd mode: this pin is a tri-state output. pd6 16 i/o 24t printer mode: pd6 parallel port data bus bit 6. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: nc pin od 24 extension. 2fdd mode: moa 2 this pin is for extension fdd a; its function is the same as that of the moa pin. pd7 17 i/o 24t printer mode: pd7 parallel port data bus bit 7. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: nc pin od 24 extension 2fdd mode: dsa 2 this pin is for extension fdd a; its function is the same as that of the dsa pin.
W83877TF publication release date: march 1998 - 14 - version 0.61 1.4 fdc interface symbol pin i/o function we 85 od 24 write enable. an open drain output. dir 89 od 24 direction of the head step motor. an open drain output. logic 1 = outward motion logic 0 = inward motion head 88 od 24 head select. this open drain output determines which disk drive head is active. logic 1 = side 0 logic 0 = side 1 rwc 87 od 24 reduced write current. this signal can be used on two-speed disk drives to select the transfer rate. an open drain output. logic 0 = 250 kb/s logic 1 = 500 kb/s when bit 5 of cr9 (en3mode) is set to high, the three-mode fdd function is enabled, and the pin will have a different definition. refer to the en3mode bit in cr9. wd 86 od 24 write data. this logic low open drain writes precompensation serial data to the selected fdd. an open drain output. step 82 od 24 step output pulses. this active low open drain output produces a pulse to move the head to another track. index 81 in cs this schmitt input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). trak 0 78 in cs track 0. this schmitt input from the disk drive is active low when the head is positioned over the outermost track. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). wp 77 in cs write protected. this active low schmitt input from the disk drive indicates that the diskette is write-protected. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). rdata 74 in cs the read data input signal from the fdd. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). dskchg 76 in cs diskette change. this signal is active low at power on and whenever the diskette is removed. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn).
W83877TF publication release date: march 1998 - 15 - version 0.61 1.4 fdc interface, continued symbol pin i/o function moa 79 od 24 motor a on. when set to 0, this pin enables disk drive 0. this is an open drain output. mob 80 od 24 motor b on. when set to 0, this pin enables disk drive 1. this is an open drain output. dsa 83 od 24 drive select a. when set to 0, this pin enables disk drive a. this is an open drain output. dsb 84 od 24 drive select b. when set to 0, this pin enables disk drive b. this is an open drain output. vdd 15, 56 +5 power supply for the digital circuitry. gnd 25, 40 65, 90 ground.
W83877TF publication release date: march 1998 - 16 - version 0.61 2.0 fdc functional description 2.1 W83877TF fdc the floppy disk controller of the W83877TF integrates all of the logic required for floppy disk control. the fdc implements a pc/at or ps/2 solution. all programmable options default to compatible values. the fifo provides better system performance in multi-master systems. the digital data separator supports up to data rate 1 m bits/sec. (2 m bits/sec for fast tape drive) the fdc includes the following blocks: at interface, precompensation, data rate selection, digital data separator, fifo, and fdc core. 2.1.1 at interface the interface consists of the standard asynchronous signals: rd , wr , a0-a3, irq, dma control, and a data bus. the address lines select between the configuration registers, the fifo and control/status registers. this interface can be switched between pc/at, model 30, or ps/2 normal modes. the ps/2 register sets are a superset of the registers found in a pc/at. 2.1.2 fifo (data) the fifo is 16 bytes in size and has programmable threshold values. all command parameter information and disk data transfers go through the fifo. data transfers are governed by the rqm and dio bits in the main status register. the fifo defaults to disabled mode after any form of reset. this maintains pc/at hardware compatibility. the default values can be changed through the configure command. the advantage of the fifo is that it allows the system a larger dma latency without causing disk errors. the following tables give several examples of the delays with a fifo. the data are based upon the following formula: threshold (1/data rate) *8 - 1.5 m s = delay fifo threshold maximum delay to servicing at 500k bps data rate 1 byte 1 16 m s - 1.5 m s = 14.5 m s 2 byte 2 16 m s - 1.5 m s = 30.5 m s 8 byte 8 16 m s - 1.5 m s = 6.5 m s 15 byte 15 16 m s - 1.5 m s = 238.5 m s fifo threshold maximum delay to servicing at 1m bps data rate 1 byte 1 8 m s - 1.5 m s = 6.5 m s 2 byte 2 8 m s - 1.5 m s = 14.5 m s 8 byte 8 8 m s - 1.5 m s = 62.5 m s 15 byte 15 8 m s - 1.5 m s = 118.5 m s at the start of a command the fifo is always disabled and command parameters must be sent based upon the rqm and dio bit settings in the main status register. when the fdc enters the command execution phase, it clears the fifo of any data to ensure that invalid data are not transferred.
W83877TF publication release date: march 1998 - 17 - version 0.61 an overrun and underrun will terminate the current command and the data transfer. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the host to remove the remaining data so that the result phase may be entered. dma transfers are enabled with the specify command and are initiated by the fdc by activating the drq pin during a data transfer command. the fifo is enabled directly by asserting dack and addresses need not be valid. note that if the dma controller is programmed to function in verify mode a pseudo read is performed by the fdc based only on dack . this mode is only available when the fdc has been configured into byte mode (fifo disabled) and is programmed to do a read. with the fifo enabled the above operation is performed by using the new verify command. no dma operation is needed. ? @ 2.1.3 data separator the function of the data separator is to lock onto the incoming serial read data. when a lock is achieved the serial front end logic of the chip is provided with a clock which is synchronized to the read data. the synchronized clock, called the data window, is used to internally sample the serial data portion of the bit cell, and the alternate state samples the clock portion. serial to parallel conversion logic separates the read data into clock and data bytes. the digital data separator (dds) has three parts: control logic, error adjustment, and speed tracking. the dds circuit cycles once every 12 clock cycles ideally. any data pulse input will be synchronized and then adjusted by immediate error adjustment. the control logic will generate rdd and rwd for every pulse input. during any cycle where no data pulse is present, the dds cycles are based on speed. a digital integrator is used to keep track of the speed changes in the input data stream. 2.1.4 write precompensation the write precompensation logic is used to minimize bit shifts in the rddata stream from the disk drive. shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media and the floppy drive. the fdc monitors the bit stream that is being sent to the drive. the data patterns that require precompensation are well known. depending upon the pattern, the bit is shifted either early or late relative to the surrounding bits. 2.1.5 perpendicular recording mode the fdc is also capable of interfacing directly to perpendicular recording floppy drives. perpendicular recording differs from the traditional longitudinal method in that the magnetic bits are oriented vertically. this scheme packs more data bits into the same area. fdcs with perpendicular recording drives can read standard 3.5" floppy disks and can read and write perpendicular media. some manufacturers offer drives that can read and write standard and perpendicular media in a perpendicular media drive. a single command puts the fdc into perpendicular mode. all other commands operate as they normally do. the perpendicular mode requires a 1 mbps data rate for the fdc. at this data rate the fifo eases the host interface bottleneck due to the speed of data transfer to or from the disk.
W83877TF publication release date: march 1998 - 18 - version 0.61 2.1.6 tape drive the W83877TF supports standard tape drives (1 mbps, 500 kbps, 250 kbps) and new fast tape drive (2m bps). 2.1.7 fdc core the W83877TF fdc is capable of performing twenty commands. each command is initiated by a multi-byte transfer from the microprocessor. the result can also be a multi-byte transfer back to the microprocessor. each command consists of three phases: command, execution, and result. command the microprocessor issues all required information to the controller to perform a specific operation. execution the controller performs the specified operation. result after the operation is completed, status information and other housekeeping information is provided to the microprocessor. 2.1.8 fdc commands command symbol descriptions: c: cylinder number 0 - 256 d: data pattern dir: step direction dir = 0, step out dir = 1, step in ds0: disk drive select 0 ds1: disk drive select 1 dtl: data length ec: enable count eot: end of track efifo: enable fifo eis: enable implied seek eot: end of track fifothr: fifo threshold gap: gap length selection gpl: gap length h: head number hds: head number select hlt: head load time hut: head unload time lock: lock efifo, fifothr, ptrtrk bits prevent affected by software reset mfm: mfm or fm mode mt: multitrack n: the number of data bytes written in a sector ncn: new cylinder number
W83877TF publication release date: march 1998 - 19 - version 0.61 nd: non-dma mode ow: overwritten pcn: present cylinder number poll: polling disable pretrk: precompensation start track number r: record rcn: relative cylinder number r/w: read/write sc: sector/per cylinder sk: skip deleted data address mark srt: step rate time st0: status register 0 st1: status register 1 st2: status register 2 st3: status register 3 wg: write gate alters timing of we 2.1.9 fdc instruction sets (1) read data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 20 - version 0.61 (2) read deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 21 - version 0.61 (3) read a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system; fdd reads contents of all cylinders from index hole to eot result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 22 - version 0.61 (4) read id phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ disk status after the command has been completed (5) verify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl/sc ------------------- execution no data transfer takes place result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 23 - version 0.61 (6) version phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command codes result w 1 0 0 1 0 0 0 0 enhanced controller (7) write data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 24 - version 0.61 (8) write deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83877TF publication release date: march 1998 - 25 - version 0.61 (9) format a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- n ------------------------ --------------------- sc ----------------------- bytes/sector sectors/cylinder w w --------------------- gpl --------------------- ---------------------- d ------------------------ gap 3 filler byte execution for each sector repeat: w w w w ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ input sector parameters result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- (10) recalibrate phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt (11) sense interrupt status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command codes result r r ---------------- st0 ------------------------- ---------------- pcn ------------------------- status information at the end of each seek operation
W83877TF publication release date: march 1998 - 26 - version 0.61 (12) specify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w w | ---------srt ----------- | --------- hut ---------- | |------------ hlt -----------------------------------| nd (13) seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w -------------------- ncn ----------------------- execution r head positioned over proper cylinder on diskette (14) configure phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w 0 0 0 0 0 0 0 0 w w 0 eis efifo poll | ------ fifothr ----| | --------------------pretrk ---------------------- | execution internal registers written (15) relative seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w | -------------------- rcn ---------------------------- |
W83877TF publication release date: march 1998 - 27 - version 0.61 (16) dumpreg phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 registers placed in fifo result r r r r r r r r r r -------------------- pcn-drive 0----------------- -------------------- pcn-drive 1 ---------------- -------------------- pcn-drive 2----------------- -------------------- pcn-drive 3 ---------------- -------- srt ----------- | -------- hut ---------- ------------ hlt -------------------------------------| nd -------------------- sc/eot -------------------- lock 0 d3 d2 d1 d0 gap wg 0 eis efifo poll| --- fifothr ---- | --------------------pretrk --------------------- (17) perpendicular mode phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command code w ow 0 d3 d2 d1 d0 gap wg (18) lock phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command code result r 0 0 0 lock 0 0 0 0 (19) sense drive status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command code w 0 0 0 0 0 hds ds1 ds0 result r ---------------- st3 ------------------------- status information about disk drive (20) invalid phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w ------------- invalid codes ----------------- invalid codes (no operation - fdc goes into standby state) result r -------------------- st0 ---------------------- st0 = 80h
W83877TF publication release date: march 1998 - 28 - version 0.61 2.2 register descriptions there are several status, data, and control registers in W83877TF. these registers are defined below: address register offset read write base address + 0 base address + 1 base address + 2 base address + 3 sa register sb register td register do register td register base address + 4 ms register dr register base address + 5 dt (fifo) register dt (fifo) register base address + 7 di register cc register 2.2.1 status register a (sa register) (read base address + 0) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step drv2 init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drv 2 (bit 6): 0 a second dr ive has been installed 1 a second drive has not been installed step (bit 5): this bit indicates the complement of step output. trak 0 (bit 4): this bit indicates the value of trak 0 input. head (bit 3): this bit indicates the complement of head output. 0 side 0 1 side 1
W83877TF publication release date: march 1998 - 29 - version 0.61 index (bit 2): this bit indicates the value of index output. wp (bit 1): 0 disk is write-protected 1 disk is not write-protected dir (bit 0) this bit indicates the direction of head movement. 0 outward direction 1 inward direction in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step f/f drq init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drq (bit 6): this bit indicates the value of drq output pin. step f/f (bit 5): this bit indicates the complement of latched step output. trak0 (bit 4): this bit indicates the complement of trak 0 input. head (bit 3): this bit indicates the value of head output. 0 side 1 1 side 0
W83877TF publication release date: march 1998 - 30 - version 0.61 index (bit 2): this bit indicates the complement of index output. wp (bit 1): 0 disk is not write-protected 1 disk is write-protected dir (bit 0) this bit indicates the direction of head movement. 0 inward direction 1 outward direction 2.2.2 status register b (sb register) (read base address + 1) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 mot en a we rdata toggle wdata toggle drive sel0 mot en b 1 1 drive sel0 (bit 5): this bit indicates the status of do register bit 0 (drive select bit 0). wdata toggle (bit 4): this bit changes state at every rising edge of the wd output pin. rdata toggle (bit 3): this bit changes state at every rising edge of the rdata output pin. we (bit 2): this bit indicates the complement of the we output pin. mot en b (bit 1) this bit indicates the complement of the mob output pin. mot en a (bit 0) this bit indicates the complement of the moa output pin. in ps/2 model 30 mode, the bit definitions for this register are as follows:
W83877TF publication release date: march 1998 - 31 - version 0.61 1 2 3 4 5 6 7 0 dsc dsd we f/f rdata f/f dsa dsb drv2 wd f/f drv 2 (bit 7): 0 a second drive has been installed 1 a second drive has not been installed dsb (bit 6): this bit indicates the status of dsb output pin. dsa (bit 5): this bit indicates the status of dsa output pin. wd f/f(bit 4): this bit indicates the complement of the latched wd output pin at every rising edge of the wd output pin. rdata f/f(bit 3): this bit indicates the complement of the latched rdata output pin . we f/f (bit 2): this bit indicates the complement of latched we output pin. dsd (bit 1): 0 drive d has been selected 1 drive d has not been selected dsc (bit 0): 0 drive c has been selected 1 drive c has not been selected 2.2.3 digital output register (do register) (write base address + 2) the digital output register is a write-only register controlling drive motors, drive selection, drq/irq enable, and fdc resetting. all the bits in this register are cleared by the mr pin. the bit definitions are as follows:
W83877TF publication release date: march 1998 - 32 - version 0.61 7 6 5 4 3 2 1-0 drive select: 00 select drive a 01 select drive b 10 select drive c 11 select drive d floppy disk controller reset active low resets fdc dma and int enable active high enable drq/irq motor enable a. motor a on when active high motor enable b. motor b on when active high motor enable c. motor c on when active high motor enable d. motor d on when active high 2.2.4 tape drive register (td register) (read base address + 3) this register is used to assign a particular drive number to the tape drive support mode of the data separator. this register also holds the media id, drive type, and floppy boot drive information of the floppy disk drive. in normal floppy mode, this register includes only bit 0 and 1. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tape sel 0 tape sel 1 x x x x x x if three mode fdd function is enabled (en3mode = 1 in cr9), the bit definitions are as follows: 1 2 3 4 5 6 7 0 floppy boot drive 0 floppy boot drive 1 drive type id0 drive type id1 media id0 media id1 tape sel 0 tape sel 1 media id1 media id0 (bit 7, 6): these two bits are read only. these two bits reflect the value of cr8 bit 3, 2. drive type id1 drive type id0 (bit 5, 4): these two bits reflect two of the bits of cr7. which two bits are reflected depends on the last drive selected in the do register. floppy boot drive 1, 0 (bit 3, 2): these two bits reflect the value of cr8 bit 1, 0. tape sel 1, tape sel 0 (bit 1, 0):
W83877TF publication release date: march 1998 - 33 - version 0.61 these two bits assign a logical drive number to the tape drive. drive 0 is not available as a tape drive and is reserved as the floppy disk boot drive. tape sel 1 tape sel 0 drive selected 0 0 none 0 1 1 1 0 2 1 1 3 2.2.5 main status register (ms register) (read base address + 4) the main status register is used to control the flow of data between the microprocessor and the controller. the bit definitions for this register are as follows: fdd 0 busy, (d0b = 1), fdd number 0 is in the seek mode. fdd 1 busy, (d1b = 1), fdd number 1 is in the seek mode. fdc busy, (cb). a read or write command is in the process when cb = high. non-dma mode, the fdc is in the non-dma mode, this bit is set only during the execution phase in non-dma mode. transition to low state indicates execution phase has ended. data input/output, (dio). if dio= high then transfer is from data register to the processor. if dio = low then transfer is from processor to data register. request for master (rqm). a high on this bit indicates data register is ready to send or receive data to or from the processor. 7 6 5 4 3 2 1 0 fdd 2 busy, (d2b = 1), fdd number 2 is in the seek mode. fdd 3 busy, (d3b = 1), fdd number 3 is in the seek mode. 2.2.6 data rate register (dr register) (write base address + 4) the data rate register is used to set the transfer rate and write precompensation. the data rate of the fdc is programmed by the cc register for pc-at and ps/2 model 30 and ps/2 mode, and not by the dr register. the real data rate is determined by the most recent write to either of the dr register or cc register. 1 2 3 4 5 6 7 0 drate0 drate1 precomp0 precomp1 precomp2 power down s/w reset 0 s/w reset (bit 7): this bit is the software reset bit.
W83877TF publication release date: march 1998 - 34 - version 0.61 power-down (bit 6): 0 fdc in normal mode 1 fdc in power-down mode precomp2 precomp1 precomp0 (bit 4, 3, 2): these three bits select the value of write precompensation. the following tables show the precompensation values for the combination of these bits. precom precompensation delay 2 1 0 250k - 1mbps 2 mbps tape drive 0 0 0 default delays default delays 0 0 1 41.67 ns 20.8ns 0 1 0 83.34 ns 41.17ns 0 1 1 125.00 ns 62.5ns 1 0 0 166.67 ns 83.3ns 1 0 1 208.33 ns 104.2ns 1 1 0 250.00 ns 125.00ns 1 1 1 0.00 ns (disabled) 0.00ns (disabled) data rate default precompensation delays 250 kb/s 125 ns 300 kb/s 125 ns 500 kb/s 125 ns 1 mb/s 41.67 ns 2 mb/s 20.8 ns drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc and reduced write current control. 00 500 kb/s (mfm), 250 kb/s (fm), rwc = 1. 01 300 kb/s (mfm), 150 kb/s (fm), rwc = 0. 10 250 kb/s (mfm), 125 kb/s (fm), rwc = 0. 11 1 mb/s (mfm), illegal (fm), rwc = 1. the 2mb/s data rate for tape drive is only supported by setting 01 to drate1 and drate0 bits, as well as setting 10 to drta1 and drta0 bits which are two of the configuration cr2d. please refer to the function of cr2d and the data rate table for individual data rates setting.
W83877TF publication release date: march 1998 - 35 - version 0.61 2.2.7 fifo register (r/w base address + 5) the data register consists of four status registers in a stack with only one register presented to the data bus at a time. this register stores data, commands, and parameters and provides diskette-drive status information. data bytes are passed through the data register to program or obtain results after a command. in the W83877TF, this register defaults to fifo disabled mode after reset. the fifo can change its value and enable its operation through the configure command. status register 0 (st0) 7-6 5 4 3 2 1-0 us1, us0 drive select: 00 drive a selected 01 drive b selected 10 drive c selected 11 drive d selected hd head address: 1 head selected 0 head selected nr not ready: 1 drive is not ready 0 drive is ready ec equipment check: 1 when a fault signal is received from the fdd or the track 0 signal fails to occur after 77 step pulses 0 no error se seek end: 1 seek end 0 seek error ic interrupt code: 00 normal termination of command 01 abnormal termination of command 10 invalid command issue 11 abnormal termination because the ready signal from fdd changed state during command execution status register 1 (st1) missing address mark. 1 when the fdc cannot detect the data address mark or the data address mark has been deleted. nw (not writable). 1 if a write protect signal is detected from the diskette drive during execution of write data. nd (no data). 1 if specified sector cannot be found during execution of a read, write or verifly data. not used. this bit is always 0. or (over rum). 1 if the fdc is not serviced by the host system within a certain time interval during data transfer. de (data error).1 when the fdc detects a crc error in either the id field or the data field. not used. this bit is always 0. en (end of track). 1 when the fdc tries to access a sector beyond the final sector of a cylinder. 0 1 2 3 4 5 6 7
W83877TF publication release date: march 1998 - 36 - version 0.61 status register 2 (st2) 1 2 3 4 5 6 7 0 bc (bad cylinder) md (missing address mark in data field). 1 if the fdc cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 no error 1 bad cylinder 0 no error sn (scan not satisfied) 1 during execution of the scan command 0 no error sh (scan equal hit) 1 during execution of the scan command, if the equal condition is satisfied 0 no error wc (wrong cylinder) 1 indicates wrong cylinder dd (data error in the data field) 1 if the fdc detects a crc error in the data field 0 no error cm (control mark) 1 during execution of the read data or scan command 0 no error not used. this bit is always 0 status register 3 (st3) 1 2 3 4 5 6 7 0 us0 unit select 0 us1 unit select 1 hd head address ts two-side to track 0 ry ready wp write protected ft fault 2.2.8 digital input register (di register) (read base address + 7) the digital input register is an 8-bit read-only register used for diagnostic purposes. in a pc/xt or at only bit 7 is checked by the bios. when the register is read, bit 7 shows the complement of dskchg , while other bits of the data bus remain in tri-state. bit definitions are as follows: x x x x x x x x 0 1 2 3 4 5 6 7 reserved for the hard disk controller during a read of this register, these bits are in tri-state dskchg in the ps/2 mode, the bit definitions are as follows:
W83877TF publication release date: march 1998 - 37 - version 0.61 1 2 3 4 5 6 7 0 high dens drate0 drate1 dskchg 1 1 1 1 dskchg (bit 7): this bit indicates the complement of the dskchg input. bit 6-3: these bits are always a logic 1 during a read. drate1 drate0 (bit 2, 1): these two bits select the data rate of the fdc. refer to the dr register bits 1 and 0 for the settings corresponding to the individual data rates. high dens (bit 0): 0 500 kb/s or 1 mb/s data rate (high density fdd) 1 250 kb/s or 300 kb/s data rate in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 dskchg noprec dmaen 0 0 0 dskchg (bit 7): this bit indicates the status of dskchg input. bit 6-4: these bits are always a logic 1 during a read. dmaen (bit 3): this bit indicates the value of do register bit 3. noprec (bit 2): this bit indicates the value of cc register noprec bit. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
W83877TF publication release date: march 1998 - 38 - version 0.61 2.2.9 configuration control register (cc register) (write base address + 7) this register is used to control the data rate. in the pc/at and ps/2 mode, the bit definitions are as follows: x x x x x x drate0 drate1 0 1 2 3 4 5 7 6 x: reserved bit 7-2: reserved. these bits should be set to 0. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 noprec x x x x x x : reserved bit 7-3: reserved. these bits should be set to 0. noprec (bit 2): this bit indicates no precompensation. it has no function and can be set by software. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
W83877TF publication release date: march 1998 - 39 - version 0.61 3.0 uart port 3.1 universal asynchronous receiver/transmitter (uart a, uart b) the uarts are used to convert parallel data into serial format on the transmit side and convert serial data to parallel format on the receiver side. the serial format, in order of transmission and reception, is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and half (five-bit format only) or two stop bits. the uarts are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitter logic. provisions are also included to use this 16x clock to drive the receiver logic. the uarts also support the midi data rate. furthermore, the uarts also include complete modem control capability and a processor interrupt system that may be software trailed to the computing time required to handle the communication link. the uarts have a fifo mode to reduce the number of interrupts presented to the cpu. in each uart, there are 16- byte fifos for both receive and transmit mode.
W83877TF data sheet revision history pages dates version version on web main contents 1 n.a. 03/20/97 0.50 not published, for internal reference only. 2 n.a. 05/20/97 0.60 first published. 3 1,8,9,63,65, 78,80,104- 107,116,118, 119,133 03/20/98 0.61 typo correction and data calibrated 4 5 6 7 8 9 10 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners. life support applications these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales.
W83877TF winbond i/o publication release date: may 1997 - i - preliminary version 0.60 table of contents general description ................................ ................................ ................................ 1 features ................................ ................................ ................................ .......................... 2 pin configuration ................................ ................................ ................................ ...... 4 1.0 pin description ................................ ................................ ................................ ........................ 5 1.1 host interface ................................ ................................ ................................ ......................... 5 1.2 serial port interface ................................ ................................ ................................ ........... 7 1.3 multi-mode parallel port ................................ ................................ ................................ .. 8 1.4 fdc interface ................................ ................................ ................................ .......................... 14 2.0 fdc functional description ................................ ................................ ........ 16 2.1 W83877TF fdc ................................ ................................ ................................ ............................. 16 2.2 register descriptions ................................ ................................ ................................ ......... 28 3.0 uart port ................................ ................................ ................................ ................ 39 3.1 universal asynchronous receiver/transmitter (uart a, uart b) .................. 39 3.2 register address ................................ ................................ ................................ ................... 40 4.0 parallel port ................................ ................................ ................................ ..... 49 4.1 printer interf ace logic ................................ ................................ ................................ ..... 49 4.2 enhanced paral lel port (epp) ................................ ................................ ......................... 51 4.3 extended capab ilities parallel (ecp) port ................................ ............................... 55 4.4 extension fdd mode (extfdd) ................................ ................................ ........................... 64 4.5 extension 2fdd mode (ext2fdd) ................................ ................................ ....................... 64 5.0 plug and play configuration ................................ ................................ .... 65 6.0 acpi /legacy feature and auto power management ..................... 65 6.1 acpi/legacy pow er management ................................ ................................ ................... 65 6.2 auto(device) po wer management ................................ ................................ .................. 65
W83877TF publication release date: may 1997 - ii - prelimi nary version 0.60 7.0 serial irq ................................ ................................ ................................ ................. 66 7.1 start frame ................................ ................................ ................................ ............................. 67 7.2 irq/data frame ................................ ................................ ................................ ....................... 67 7.3 stop frame ................................ ................................ ................................ ................................ 68 7.4 reset and initi alization ................................ ................................ ................................ .... 68 8.0 extended function registers ................................ ................................ .... 69 8.1 extended functions enable registers (efers) ................................ ............................. 69 8.2 extended function index registers (efirs), extended function data registers (efdrs) ................................ ................................ ................................ ..................... 7 0 8.3 acpi registers features ................................ ................................ ................................ ....... 113 8.4 acpi registers (acpirs) ................................ ................................ ................................ ........... 115 9.0 specifications ................................ ................................ ................................ .... 129 9.1 absolute maxim um ratings ................................ ................................ ............................ 129 9.2 dc characteris tics ................................ ................................ ................................ ............ 129 9.2 dc characterist ics, continued ................................ ................................ .................... 130 9.3 ac characteris tics ................................ ................................ ................................ ............ 131 10.0 timing waveforms ................................ ................................ ........................ 137 10.1 fdc ................................ ................................ ................................ ................................ .............. 137 10.2 uart/parallel ................................ ................................ ................................ ....................... 138 10.3 parallel port ................................ ................................ ................................ ....................... 140 11.0 application circuits ................................ ................................ .................... 146 11.1 parallel port extension fdd ................................ ................................ ........................ 146 11.2 parallel port extension 2fdd ................................ ................................ ....................... 147 11.3 four fdd mode ................................ ................................ ................................ ...................... 147 12.0 ordering information ................................ ................................ ............... 148 13.0 how to read the top marking ................................ ............................... 148 14.0 package dimensions ................................ ................................ ..................... 149
W83877TF publication release date: march 1998 - 49 - version 0.61 4.0 parallel port 4.1 printer interface logic the parallel port of the W83877TF makes possible the attachment of various devices that accept eight bits of parallel data at standard ttl level. the W83877TF supports an ibm xt/at compatible parallel port (spp), bi-directional parallel port (bpp), enhanced parallel port (epp), extended capabilities parallel port (ecp), extension fdd mode (extfdd), and extension 2fdd mode (ext2fdd) on the parallel port. refer to the configuration registers for more information on disabling, power-down, and on selecting the mode of operation. table 4-1 shows the pin definitions for different modes of the parallel port. table 4-1-a parallel port connector and pin definition for spp/epp/ecp modes host connector pin number of W83877TF pin attribute spp epp ecp 1 19 o nstb nwrite nstb, hostclk 2-9 9-14,16-17 i/o pd<0:7> pd<0:7> pd<0:7> 10 26 i nack intr nack, periphclk 11 24 i busy nwait busy, periphack 2 12 27 i pe pe peerror, nackreverse 2 13 28 i slct select slct, xflag 14 20 o nafd ndstrb nafd, hostack 2 15 29 i nerr nerror nfault 1 , nperiphrequest 2 16 21 o ninit ninit ninit 1 , nreverserqst 2 17 22 o nslin nastrb nslin 1 , ecpmode 2 notes: n : active low 1. compatible mode 2. high speed mode 3. for more information, refer to the ieee 1284 standard.
W83877TF publication release date: march 1998 - 50 - version 0.61 table 4-1-b parallel port connector and pin definition for extfdd and ext2fdd modes host connector pin number of W83877TF pin attribute spp pin attribute ext2fdd pin attribute extfdd 1 19 o nstb --- --- --- --- 2 9 i/o pd0 i index 2 i index 2 3 10 i/o pd1 i trak 02 i 4 11 i/o pd2 i wp 2 i 5 12 i/o pd3 i rdata 2 i rdata 2 6 13 i/o pd4 i dskchg 2 i dskchg 2 7 14 i/o pd5 --- --- --- --- 8 15 i/o pd6 od moa 2 --- --- 9 16 i/o pd7 od dsa 2 --- --- 10 26 i nack od dsb 2 od 11 24 i busy od mob 2 od 12 27 i pe od wd 2 od wd 2 13 28 i slct od we 2 od we 2 14 20 o nafd od rwc 2 od rwc 2 15 29 i nerr od nerr 2 od 16 21 o ninit od dir 2 od dir 2 17 22 o nslin od step 2 od
W83877TF publication release date: march 1998 - 51 - version 0.61 4.2 enhanced parallel port (epp) table 4-2 printer mode and epp register address a2 a1 a0 register note 0 0 0 data port (r/w) 1 0 0 1 printer status buffer (read) 1 0 1 0 printer control latch (write) 1 0 1 0 printer control swapper (read) 1 0 1 1 epp address port (r/w) 2 1 0 0 epp data port 0 (r/w) 2 1 0 1 epp data port 1 (r/w) 2 1 1 0 epp data port 2 (r/w) 2 1 1 1 epp data port 2 (r/w) 2 notes: 1. these registers are available in all modes. 2. these registers are available only in epp mode. 4.2.1 data swapper the system microprocessor can read the contents of the printer's data latch by reading the data swapper. 4.2.2 printer status buffer the system microprocessor can read the printer status by reading the address of the printer status buffer. the bit definitions are as follows: 1 1 1 2 3 5 4 6 7 0 tmout error slct pe busy ack bit 7: this signal is active during data entry, when the printer is off-line during printing, when the print head is changing position, or during an error state. when this signal is active, the printer is busy and cannot accept data.
W83877TF publication release date: march 1998 - 52 - version 0.61 bit 6: this bit represents the current state of the printer's ack signal. a 0 means the printer has received a character and is ready to accept another. normally, this signal will be active for approximately 5 microseconds before busy stops. bit 5: a 1 means the printer has detected the end of paper. bit 4: a 1 means the printer is selected. bit 3: a 0 means the printer has encountered an error condition. bit 1, 2: these two bits are not implemented and are logic one during a read of the status register. bit 0: this bit is valid in epp mode only. it indicates that a 10 m s time-out has occurred on the epp bus. a logic 0 means that no time-out error has occurred; a logic 1 means that a time-out error has been detected. writing a logic 1 to this bit will clear the time-out status bit; writing a logic 0 has no effect. 4.2.3 printer control latch and printer control swapper the system microprocessor can read the contents of the printer control latch by reading the printer control swapper. bit definitions are as follows: 1 1 1 2 3 4 5 6 7 0 strobe auto fd slct in irq enable dir init bit 7, 6: these two bits are a logic one during a read. they can be written. bit 5: direction control bit when this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). this bit can be read and written. in spp mode, this bit is invalid and fixed at zero. bit 4: a 1 in this position allows an interrupt to occur when ack changes from low to high. bit 3: a 1 in this bit position selects the printer. bit 2: a 0 starts the printer (50 microsecond pulse, minimum). bit 1: a 1 causes the printer to line-feed after a line is printed. bit 0: a 0.5 microsecond minimum high active pulse clocks data into the printer. valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse.
W83877TF publication release date: march 1998 - 53 - version 0.61 4 .2.4 epp address port the address port is available only in epp mode. bit definitions are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd5 pd4 pd6 pd7 the contents of db0-db7 are buffered (non-inverting) and output to ports pd0-pd7 during a write operation. the leading edge of iow c auses an epp address write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. pd0-pd7 ports are read during a read operation. the leading edge of ior causes an epp address read cycle to be performed and the data to be output to the host cpu. 4.2.5 epp data port 0-3 these four registers are available only in epp mode. bit definitions of each data port are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 when accesses are made to any epp data port, the contents of db0-db7 are buffered (non- inverting) and output to the ports pd0-pd7 during a write operation. the leading edge of iow causes an epp data write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. during a read operation, ports pd0-pd7 are read, and the leading edge of ior causes an epp read cycle to be performed and the data to be output to the host cpu.
W83877TF publication release date: march 1998 - 54 - version 0.61 4 .2.6 bit map of parallel port and epp registers register 7 6 5 4 3 2 1 0 data port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 status buffer (read) busy ack pe slct error 1 1 tmout control swapper (read) 1 1 1 irqen slin init autofd strobe control latch (write) 1 1 dir irq slin init autofd strobe epp address port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 0 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 1 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 2 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 3 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 4.2.7 epp pin descriptions epp name type epp description nwrite o denotes an address or data read or write operation. pd<0:7> i/o bi-directional epp address and data bus. intr i used by peripheral device to interrupt the host. nwait i inactive to acknowledge that data transfer is completed. active to indicate that the device is ready for the next transfer. pe i paper end; same as spp mode. select i printer selected status; same as spp mode. ndstrb o this signal is active low. it denotes a data read or write operation. nerror i error; same as spp mode. ninits o this signal is active low. when it is active, the epp device is reset to its initial operating mode. nastrb o this signal is active low. it denotes an address read or write operation. 4.2.8 epp operation when the epp mode is selected in the configuration register, the standard and bi-directional modes are also available. the pdx bus is in the standard or bi-directional mode when no epp read, write, or address cycle is currently being executed. in this condition all output signals are set by the spp control port and the direction is controlled by dir of the control port.
W83877TF publication release date: march 1998 - 55 - version 0.61 a watchdog timer is required to prevent system lockup. the timer indicates that more than 10 m s have elapsed from the start of the epp cycle to the time wait is de-asserted. the current epp cycle is aborted when a time-out occurs. the time-out condition is indicated in status bit 0. epp operation the epp operates on a two-phase cycle. first, the host selects the register within the device for subsequent operations. second, the host performs a series of read and/or write byte operations to the selected register. four operations are supported on the epp: address write, data write, address read, and data read. all operations on the epp device are performed synchronously. epp version 1.9 operation the epp read/write operation can be completed under the following conditions: a. if the nwait is active low, when the read cycle (nwrite inactive high, ndstrb/nastrb active low) or write cycle (nwrite active low, ndstrb/nastrb active low) starts, the read/write cycle proceeds normally and will be completed when nwait goes inactive high. b. if nwait is inactive high, the read/write cycle will not start. it must wait until nwait changes to active low, at which time it will start as described above. epp version 1.7 operation the epp read/write cycle can start without checking whether nwait is active or inactive. once the read/write cycle starts, however, it will not terminate until nwait changes from active low to inactive high. 4.3 extended capabilities parallel (ecp) port this port is software and hardware compatible with existing parallel ports, so it may be used as a standard printer mode if ecp is not required. it provides an automatic high burst-bandwidth channel that supports dma for ecp in both the forward (host to peripheral) and reverse (peripheral to host) directions. small fifos are used in both forward and reverse directions to improve the maximum bandwidth requirement. the size of the fifo is 16 bytes. the ecp port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the ecp port supports run-length-encoded (rle) decompression (required) in the hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. the hardware support for compression is optional. for more information about the ecp protocol, refer to the extended capabilities port protocol and isa interface standard.
W83877TF publication release date: march 1998 - 56 - version 0.61 4.3.1 ecp register and mode definitions name address i/o ecp modes function data base+000h r/w 000-001 data register ecpafifo base+000h r/w 011 ecp fifo (address) dsr base+001h r all status register dcr base+002h r/w all control register cfifo base+400h r/w 010 parallel port data fifo ecpdfifo base+400h r/w 011 ecp fifo (data) tfifo base+400h r/w 110 test fifo cnfga base+400h r 111 configuration register a cnfgb base+401h r/w 111 configuration register b ecr base+402h r/w all extended control register note: the base addresses are specified by cr23, which are determined by configuration register or hardware setting. mode description 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this option is enabled in the cr9 and cr0 to select ecp/epp mode) 101 reserved 110 test mode 111 configuration mode note: the mode selection bits are bit 7-5 of the extended control register. 4.3.2 data and ecpafifo port modes 000 (spp) and 001 (ps/2) (data port) during a write operation, the data register latches the contents of the data bus on the rising edge of the input. the contents of this register are output to the pd0-pd7 ports. during a read operation, ports pd0-pd7 are read and output to the host. the bit definitions are as follows:
W83877TF publication release date: march 1998 - 57 - version 0.61 7 6 5 4 3 2 1 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 mode 011 (ecp fifo-address/rle) a data byte written to this address is placed in the fifo and tagged as an ecp address/rle. the hardware at the ecp port transmits this byte to the peripheral automatically. the operation of this register is defined only for the forward direction. the bit definitions are as follows: 7 6 5 4 3 2 1 0 address or rle address/rle 4.3.3 device status register (dsr) these bits are at low level during a read of the printer status register. the bits of this status register are defined as follows: 7 6 5 4 3 2 1 0 nfault select perror nack nbusy 1 1 1 bit 7: this bit reflects the complement of the busy input. bit 6: this bit reflects the nack input. bit 5: this bit reflects the perror input. bit 4: this bit reflects the select input. bit 3: this bit reflects the nfault input. bit 2-0: these three bits are not implemented and are always logic one during a read.
W83877TF publication release date: march 1998 - 58 - version 0.61 4.3.4 device control register (dcr) the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 strobe autofd ninit select in direction ackint en bit 6, 7: these two bits are logic one during a read and cannot be written. bit 5: this bit has no effect and the direction is always out if mode = 000 or mode = 010. direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. bit 4: interrupt request enable. when this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the cpu due to a low to high transition on the ack input. bit 3: this bit is inverted and output to the slin output. 0 the printer is not selected. 1 the printer is selected. bit 2: this bit is output to the init output. bit 1: this bit is inverted and output to the afd output. bit 0: this bit is inverted and output to the stb output. 4.3.5 cfifo (parallel port data fifo) mode = 010 this mode is defined only for the forward direction. the standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or dmaed from the system to this fifo. transfers to the fifo are byte aligned. 4.3.6 ecpdfifo (ecp data fifo) mode = 011 when the direction bit is 0, bytes written or dmaed from the system to this fifo are transmitted by a hardware handshake to the peripheral using the ecp parallel port protocol. transfers to the fifo are byte aligned. when the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ecp into this fifo. reads or dmas from the fifo will return bytes of ecp data to the system.
W83877TF publication release date: march 1998 - 59 - version 0.61 4.3.7 tfifo (test fifo mode) mode = 110 data bytes may be read, written, or dmaed to or from the system to this fifo in any direction. data in the tfifo will not be transmitted to the parallel port lines. however, data in the tfifo may be displayed on the parallel port data lines. 4.3.8 cnfga (configuration register a) mode = 111 this register is a read-only register. when it is read, 10h is returned. this indicates to the system that this is an 8-bit implementation. 4.3.9 cnfgb (configuration register b) mode = 111 the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 1 intrvalue compress irqx 0 irqx 1 irqx 2 bit 7: this bit is read-only. it is at low level during a read. this means that this chip does not support hardware rle compression. bit 6: returns the value on the isa irq line to determine possible conflicts. bit 5-3: reflect the irq resource assigned for ecp port. cnfgb[5:3] irq resource 000 reflect other irq resources selected by pnp register (default) 001 irq7 010 irq9 011 irq10 100 irq11 101 irq14 110 irq15 111 irq5 bit 2-0: these five bits are at high level during a read and can be written .
W83877TF publication release date: march 1998 - 60 - version 0.61 4.3.10 ecr (extended control register) mode = all this register controls the extended ecp parallel port functions. the bit definitions are follows: empty full service intr dma en nerrintr en mode mode mode 7 6 5 4 3 2 1 0 bit 7-5: these bits are read/write and select the mode. 000 standard parallel port mode. the fifo is reset in this mode. 001 ps/2 parallel port mode. this is the same as 000 except that direction may be used to tri-state the data lines and reading the data register returns the value on the data lines and not the value in the data register. 010 parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data are automatically transmitted using the standard parallel port protocol. this mode is useful only when direction is 0. 011 ecp parallel port mode. when the direction is 0 (forward direction), bytes placed into the ecpdfifo and bytes written to the ecpafifo are placed in a single fifo and transmitted automatically to the peripheral using ecp protocol. when the direction is 1 (reverse direction) bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. 100 selects epp mode. in this mode, epp is active if the epp supported option is selected. 101 reserved. 110 test mode. the fifo may be written and read in this mode, but the data will not be transmitted on the parallel port. 111 configuration mode. the confga and confgb registers are accessible at 0x400 and 0x401 in this mode. bit 4: read/write (valid only in ecp mode) 1 disables the interrupt generated on the asserting edge of nfault. 0 enables an interrupt pulse on the high to low edge of nfault. if nfault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. bit 3: read/write 1 enables dma. 0 disables dma unconditionally.
W83877TF publication release date: march 1998 - 61 - version 0.61 bit 2: read/write 1 disables dma and all of the service interrupts. 0 enables one of the following cases of interrupts. when one of the service interrupts has occurred, the serviceintr bit is set to a 1 by hardware. this bit must be reset to 0 to re-enable the interrupts. writing a 1 to this bit will not cause an interrupt. (a) dmaen = 1: during dma this bit is set to a 1 when terminal count is reached. (b) dmaen = 0 direction = 0: this bit is set to 1 whenever there are writeintr threshold or more bytes free in the fifo. (c) dmaen = 0 direction = 1: this bit is set to 1 whenever there are readintr threshold or more valid bytes to be read from the fifo. bit 1: read only 0 the fifo has at least 1 free byte. 1 the fifo cannot accept another byte or the fifo is completely full. bit 0: read only 0 the fifo contains at least 1 byte of data. 1 the fifo is completely empty. 4.3.11 bit map of ecp port registers d7 d6 d5 d4 d3 d2 d1 d0 note data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo addr/rle address or rle field 2 dsr nbusy nack perror select nfault 1 1 1 1 dcr 1 1 directio ackinten selectin ninit autofd strobe 1 cfifo parallel port data fifo 2 ecpdfifo ecp data fifo 2 tfifo test fifo 2 cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrvalue 1 1 1 1 1 1 ecr mode nerrintren dmaen serviceintr full empty notes: 1. these registers are available in all modes. 2. all fifos use one common 16-byte fifo.
W83877TF publication release date: march 1998 - 62 - version 0.61 4 .3.12 ecp pin descriptions name type description nstrobe (hostclk) o the nstrobe registers data or address into the slave on the asserting edge during write operations. this signal handshakes with busy. pd<7:0> i/o these signals contains address or data or rle data. nack (periphclk) i this signal indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. busy (periphack) i this signal desserts to indicate that the peripheral can accept data. it indicates whether the data lines contain ecp command information or data in the reverse direction. when in reverse direction, normal data are transferred when busy (periphack) is high and an 8-bit command is transferred when it is low. perror (nackreverse) i this signal is used to acknowledge a change in the direction of the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select (xflag) i indicates printer on line. nautofd (hostack) o requests a byte of data from the peripheral when it is asserted. this signal indicates whether the data lines contain ecp address or data in the forward direction. when in forward direction, normal data are transferred when nautofd (hostack) is high and an 8-bit command is transferred when it is low. nfault (nperiphrequest) i generates an error interrupt when it is asserted. this signal is valid only in the forward direction. the peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ecp mode. ninit (nreverserequest) o this signal sets the transfer direction (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. nselectin (ecpmode) o this signal is always deasserted in ecp mode.
W83877TF publication release date: march 1998 - 63 - version 0.61 4.3.13 ecp operation the host must negotiate on the parallel port to determine if the peripheral supports the ecp protocol before ecp operation. after negotiation, it is necessary to initialize some of the port bits. the following are required: (a) set direction = 0, enabling the drivers. (b) set strobe = 0, causing the nstrobe signal to default to the deasserted state. (c) set autofd = 0, causing the nautofd signal to default to the deasserted state. (d) set mode = 011 (ecp mode) ecp address/rle bytes or data bytes may be sent automatically by writing the ecpafifo or ecpdfifo, respectively. mode switching software will execute p1284 negotiation and all operations prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware provides an automatic control line handshake, moving data between the fifo and the ecp port only in the data transfer phase (mode 011 or 010). if the port is in mode 000 or 001 it may switch to any other mode. if the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. the direction can be changed only in mode 001. when in extended forward mode, the software should wait for the fifo to be empty before switching back to mode 000 or 001. in ecp reverse mode the software waits for all the data to be read from the fifo before changing back to mode 000 or 001. command/data ecp mode allows the transfer of normal 8-bit data or 8-bit commands. in the forward direction, normal data are transferred when hostack is high and an 8-bit command is transferred when hostack is low. the most significant bits of the command indicate whether it is a run-length count (for compression) or a channel address. in the reverse direction, normal data are transferred when periphack is high and an 8-bit command is transferred when periphack is low. the most significant bit of the command is always zero. data compression the W83877TF supports run length encoded (rle) decompression in hardware and can transfer compressed data to a peripheral. note that the odd (rle) compression in hardware is not supported. in order to transfer data in ecp mode, the compression count is written to the ecpafifo and the data byte is written to the ecpdfifo. 4.3.14 fifo operation the fifo threshold is set in configuration register 5. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non-dma) mode, as indicated by the selected mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel port mode. after a reset, the fifo is disabled.
W83877TF publication release date: march 1998 - 64 - version 0.61 4.3.15 dma transfers dma transfers are always to or from the ecpdfifo, tfifo, or cfifo. the dma uses the standard pc dma services. the ecp requests dma transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate direction and mode. when the terminal count in the dma controller is reached, an interrupt is generated and serviceintr is asserted, which will disable the dma. 4.3.16 programmed i/o (non-dma) mode the ecp or parallel port fifos can also be operated using interrupt driven programmed i/o. programmed i/o transfers are to the ecpdfifo at 400h and ecpafifo at 000h or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. the host must set the direction, state, dmaen = 0 and serviceintr = 0 in the programmed i/o transfers. the ecp requests programmed i/o transfers from the host by activating the irq pin. the programmed i/o will empty or fill the fifo using the appropriate direction and mode. 4.4 extension fdd mode (extfdd) in this mode, the W83877TF changes the printer interface pins to fdc input/output pins, allowing the user to install a second floppy disk drive (fdd b) through the db-25 printer connector. the pin assignments for the fdc input/output pins are shown in table 5-1. after the printer interface is set to extfdd mode, the following occur: (1) pins mob and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to extfdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive. 4.5 extension 2fdd mode (ext2fdd) in this mode, the W83877TF changes the printer interface pins to fdc input/output pins, allowing the user to install two external floppy disk drives through the db-25 printer connector to replace internal floppy disk drives a and b. the pin assignments for the fdc input/output pins are shown in table 5- 1. after the printer interface is set to extfdd mode, the following occur: (1) pins moa , dsa , mob , and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , and index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to ext2fdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
W83877TF publication release date: march 1998 - 65 - version 0.61 5.0 plug and play configuration a powerful new plug-and-play function has been built into the W83877TF to help simplify the task of setting up a computer environment. with appropriate support from bios manufacturers, the system designer can freely allocate winbond i/o devices (i.e., the fdc, prt and uart ) in the pc's i/o space (100h - 3ffh). in addition, the W83877TF also provides 8 interrupt requests and 3 dma pairs for designers to assign in interfacing fdcs, uarts, and prts. hence this powerful i/o chip offers greater flexibility for system designers. the pnp feature is implemented through a set of extended function registers (cr20 to 29). details on configuring these registers are given in section 8. the default values of these pnp-related registers set the system to a configuration compatible with environments designed with previous winbond i/o chips. 6.0 acpi /legacy feature and auto power management 6.1 acpi/legacy power management W83877TF supports both acpi and legacy power management models. for the acpi power management, the sci pin is dedicated to the sci interrupt signal for the sci interrupt handler; for the legacy power management, the smi pin is dedicated to the smi interrupt signal for the smi interrupt handler. two register blocks is used for the acpi/legacy power management. they are the pm1 and gpe register blocks. their base addresses are held in the W83877TF configuration registers cr33 and cr34 respectively. configuration registers cr40 to cr45 are for the legacy power management. the above configuration registers hold the interrupt event enable and status bits of the smi interrupts. control over the routing of sci and smi interrupts to the output pins is also contained in the above registers. one 24-bit power management timer is also implemented. it provides an accurate time value used by the system software to measure and profiles system idleness. 6.2 device(auto) power management W83877TF also provides the auto power management function for each device within it. they are the printer port, fdc, uart a, and uart b devices in W83877TF respectively. device idle and trap status are provided to indicate the device's working/sleeping state. device idle timer with programmable initial value is provided for each device, which enter the powerdown state when the powerdown conditions are met. any access to certain registers and external event input will wake up the devices. the global stand-by timer deals with the other logic part excluding the printer port, fdc, uart a , and uart b devices. the global stand-by timer reloads and counts down as soon as the 4 devices enter the powerdown mode and W83877TF enters the powerdown mode as soon as it expires. once any device is awakened, the global stand-by is also awakened. the initial count values of the devices are held in the configuration registers cr35 to cr39.
W83877TF publication release date: march 1998 - 66 - version 0.61 7.0 serial irq W83877TF supports a serial irq scheme. this allow a signal line to be used to report the legacy isa interrupt requests. because more than one device may need to share the signal serial irq signal line, an open drain signal scheme is used. the clock source is the pci clock. the serial interrupt is transferred on the irqser signal, one cycle consisting of three frames types: a start frame, several irq/data frame, and one stop frame. the serial interrupt scheme adheres to the serial irq specification for pci system, version 6.0. timing diagrams for irqser cycle start frame timing with source sampled a low pulse on irq1 sl or h h r t s r t s s r r t t irq2 frame irq1 frame irq0 frame start frame start 1 irq1 irq1 none none host controller h=host control sl=slave control r=recovery t=turn-around s=sample pciclk irqser drive source 1. start frame pulse can be 4-8 clocks wide. stop frame timing with host using 17 irqser sampling period t s r t s s r r t next cycle stop frame irq14 stop 1 irq15 none none host controller h=host control i=idle r=recovery t=turn-around s=sample pciclk irqser drive 1. stop pulse is 2 clocks wide for quiet mode, 3 clocks wide for continuous mode. frame irq15 frame iochck frame i 2 h r t start 3 2. there may be none, one or more idle states during the stop frame. 3. the next irqser cycle's start frame pulse may or may not start immediately after the turn-around clock of the stip frame.
W83877TF publication release date: march 1998 - 67 - version 0.61 7.1 start frame there are two modes of operation for the irqser start frame: quiet mode and continuous mode. in the quiet mode, the peripheral drives the serirq signal active low for one clock, and then tri- states it. this brings all the states machines of the peripherals from idle to active states. the host controller will then take over driving irqser signal low in the next clock and will continue driving the irqser low for programmable 3 to 7 clock periods. this makes the total number of clocks low for 4 to 8 clock periods. after these clocks, the host controller will drive the irqser high for one clock and then tri-stated. in the continuous mode, only the host controller initiates the start frame to update irq/data line information. the host controller drives the irqser signal low for 4 to 8 period clocks. upon reset, the irqser signal is defaulted to the continuous mode for the host controller to initiate the first start frame. 7.2 irq/data frame once the start frame has been initiated, all the peripherals must start counting frames based on the rising edge of the start pulse. each irq/data frame is three clocks: sample phase, recovery phase, and turn-around phase. during the sample phase, the peripheral drives serirq low if the corresponding irq should be active. if the corresponding irq is inactive, then irqser must be left tri-stated. during the recovery phase, the peripheral device drives the irqser high. during the turn-around phase, the peripheral device left the irqser tri-stated. the irq/data frame has a number of specific order, as shown in table 7-1.
W83877TF publication release date: march 1998 - 68 - version 0.61 table 7-1 irqser sampling periods irq/data frame signal sampled # of clocks past start 1 irq0 2 2 irq1 5 3 smi 8 4 irq3 11 5 irq4 14 6 irq5 17 7 irq6 20 8 irq7 23 9 irq8 26 10 irq9 29 11 irq10 32 12 irq11 35 13 irq12 38 14 irq13 41 15 irq14 44 16 irq15 47 17 iochck 50 18 inta 53 19 intb 56 20 intc 59 21 intd 62 32:22 unassigned 95 7.3 stop frame after all irq/data frames have completed , the host controller will terminate irqser by a stop frame. only the host controller can initiate the stop frame by driving irqser low for 2 or 3 clocks. if the stop frame is low for 2 clocks, the next irqser cycle's sample mode is the quiet mode. if the stop frame is low for 3 clocks, the next irqser cycle's sample mode is the continuous mode. 7.4 reset and initialization after mr reset, irqser slaves are put into the continuous(idle) mode. the host controller is responsible for starting the initial irqser cycle to collect system's irq/data default values. the system then follows with the continuous/quiet mode protocol (stop frame pulse width) for subsequent irqser cycles. it's the host controller's responsibility to provide the default values to 8259's and other system logic before the first irqser cycle is performed. for irqser system suspend, insertion, or removal application, the host controller should be programmed into continuous(idle) mode first. this is to guarantee irqser bus in the idle state before the system configuration changes.
W83877TF publication release date: march 1998 - 69 - version 0.61 8.0 extended function registers the W83877TF provides many configuration registers for setting up different types of configurations. after power-on reset, the state of the hardware setting of each pin will be latched by the relevant configuration register to allow the W83877TF to enter the proper operating configuration. to protect the chip from invalid reads or writes, the configuration registers cannot be accessed by the user. there are four ways to enable the configuration. n registers to be read or written. hefere (cr0c bit 5) and hefras (cr16 bit 0) can be used to select one out of these four methods of entering the extended function mode as follows: hefras hefere address and value 0 0 write 88h to the location 250h 0 1 write 89h to the location 250h (power-on default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice first, a specific value must be written once (88h/89h) or twice (86h/87h) to the extended functions enable register (i/o port address 250h or 3f0h). second, an index value (00h-19h, 20h-29h, 2ch- 2dh, 31h-3ah, 40h-45h) must be written to the extended functions index register (i/o port address 251h or 3f0h) to identify which configuration register is to be accessed. the designer can then access the desired configuration register through the extended functions data register (i/o port address 252h or 3f1h). after programming of the configuration register is finished, an additional value should be written to efers to exit the extended function mode to prevent unintentional access to those configuration registers. in the case of efer at 250h, this additional value can be any value other than 88h if hefere = 0 and 89h if hefere = 1. while efer is at 3f0h, this additional value must be aah. the designer can also set bit 6 of cr9 (lockreg) to high to protect the configuration registers against accidental accesses. the configuration registers can be reset to their default or hardware settings only by a cold reset (pin mr = 1). a warm reset will not affect the configuration registers. 8.1 extended functions enable registers (efers) after a power-on reset, the W83877TF enters the default operating mode. before the W83877TF enters the extended function mode, a specific value must be programmed into the extended function enable register (efer) so that the extended function register can be accessed. the extended function enable registers are write-only registers. on a pc/at system, their port addresses are 250h or 3f0h (as described in the above section).
W83877TF publication release date: march 1998 - 129 - version 0.61 9.0 specifications 9.1 absolute maximum ratings parameter rating unit power supply voltage -0.5 to 7.0 v input voltage -0.5 to v dd +0.5 v operating temperature 0 to +70 c storage temperature -55 to +150 c note: exposure to conditions beyond those listed under absolute maximum ratings may adversely affect the life and reliability of the device. 9.2 dc characteristics (ta = 0 c to 70 c, v dd = 5v 10%, v ss = 0v) parameter sym. min. typ. max. uni conditions i/o 8tc - ttl level output pin with source-sink capabilities of 8 ma; cmos level input voltage input low voltage v il -0.5 0.3xv dd v input high voltage v ih 0.7xv dd v dd +0.5 v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = -8 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v i/o 12t - ttl level bi-directional pin with source-sink capabilities of 12 ma input low voltage v il -0.5 0.8 v input high voltage v ih 2.0 v dd +0.5 v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = -12 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v i/o 24t - ttl level bi-directional pin with source-sink capabilities of 24 ma input low voltage v il -0.5 0.8 v input high voltage v ih 2.0 v dd +0.5 v output low voltage v ol 0.4 v i ol = 24 ma output high voltage v oh 2.4 v i oh = -24 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v
W83877TF publication release date: march 1998 - 130 - version 0.61 9.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions out 8t - ttl level output pin with source-sink capabilities of 8 ma output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = -8 ma out 12t - ttl level output pin with source-sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = -12 ma od 12 - open-drain output pin with sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma od 24 - open-drain output pin with sink capabilities of 24 ma output low voltage v ol 0.4 v i ol = 24 ma in t - ttl level input pin input low voltage v il 0.8 v v dd = 5 v input high voltage v ih 2.0 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v in ts - ttl level input pin schmitt-trigger input pin input low threshold voltage v t- 0.5 0.8 1.1 v v dd = 5 v input high threshold voltage v t+ 1.6 2.0 2.4 v v dd = 5 v hysteresis (v t+ - v t- ) v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v in c - cmos level input pin input low voltage v il 0.3xv dd v v dd = 5 v input high voltage v ih 0.7xv dd v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v in cs - cmos level schmitt-triggered input pin input low threshold voltage v t- 1.3 1.5 1.7 v v dd = 5 v input high threshold voltage v t+ 3..2 3.5 3.8 v v dd = 5 v hysteresis (v t+ - v t- ) v th 1.5 2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v
W83877TF publication release date: march 1998 - 131 - version 0.61 9.3 ac characteristics 9.3.1 fdc: data rate = 1 mb/500 kb/300 kb/250 kb/sec. parameter sym. test conditions min. typ. (note 1) max. unit sa9-sa0, aen, dack , cs , setup time to i o r ?? t ar 25 ns sa9-sa0, aen, dack , hold time for ior ?? t ar 0 ns ior width t rr 80 ns data access time from ior ?? t fd cl = 100 pf 80 ns data hold from ior ?? t dh cl = 100 pf 10 ns sd to from ior ?? t df cl = 100 pf 10 50 ns irq delay from ior ?? t ri 360/570 /675 ns sa9-sa0, aen, dack , setup time to iow ?? t aw 25 ns sa9-sa0, aen, dack , hold time for iow ?? t wa 0 ns iow width t ww 60 ns data setup time to iow ?? t dw 60 ns data hold time from iow ?? t wd 0 ns irq delay from iow ?? t wi 360/570 /675 ns drq cycle time t mcy 27 m s drq delay time dack ?? t am 50 ns drq to dack delay t ma 0 ns dack width t aa 260/430 /510 ns ior delay from drq t mr 0 ns iow delay from drq t mw 0 ns
W83877TF publication release date: march 1998 - 132 - version 0.61 9.3 ac characteristics, fdc continued parameter sym. test conditions min. typ. (note 1) max. unit iow or ior response time from drq t mrw 6/12 /20/24 m s tc width t tc 135/220 /260 ns reset width t rst 1.8/3/3. 5 m s index width t idx 0.5/0.9 /1.0 m s dir setup time to step t dst 1.0/1.6 /2.0 m s dir hold time from step t std 24/40/48 m s step pulse width t stp 6.8/11.5 /13.8 7/11.7 /14 7.2/11.9 /14.2 m s step cycle width t sc note 2 note 2 note 2 m s wd pulse width t wdd 100/185 /225 125/210 /250 150/235 /275 m s write precompensation t wpc 100/138 /225 125/210 /250 150/235 /275 m s notes: 1. typical values for t = 25 c and normal supply voltage. 2. programmable from 2 ms through 32 ms in 2 ms increments.
W83877TF publication release date: march 1998 - 133 - version 0.61 9.3.2 uart/parallel port parameter symbol test conditions min. max. unit delay from stop to set interrupt t sint 9/16 baud rate delay from ior reset interrupt t rint 100 pf loading 1 m s delay from initial irq reset to transmit start t irs 1/16 8/16 baud rate delay from iow to reset interrupt t hr 100 pf loading 175 ns delay from initial iow to interrupt t si 9/16 16/16 baud rate delay from stop to set interrupt t sti 1/2 baud rate delay from ior to reset interrupt t ir 100 pf loading 250 ns delay from ior to output t mwo 100 pf loading 200 ns set interrupt delay from modem input t sim 250 ns reset interrupt delay from ior t rim 250 ns interrupt active delay t iad 100 pf loading 25 ns interrupt inactive delay t iid 100 pf loading 30 ns baud divisor n 100 pf loading 2 16 -1 9.3.3 parallel port mode parameters parameter sym. min. typ. max. unit pd0-7, index , strobe , autofd delay from iow t1 100 ns irq delay from ack , nfault t2 60 ns irq delay from iow t3 105 ns irq active low in ecp and epp modes t4 200 300 ns error active to irq active t5 105 ns
W83877TF publication release date: march 1998 - 134 - version 0.61 9.3.4 epp data or address read cycle timing parameters parameter sym. min. max. unit ax valid to ior asserted t1 40 ns iochrdy deasserted to ior deasserted t2 0 ns ior deasserted to ax valid t3 10 10 ns ior deasserted to iow or ior asserted t4 40 ior asserted to iochrdy asserted t5 0 24 ns pd valid to sd valid t6 0 75 ns ior deasserted to sd hi-z (hold time) t7 0 40 m s sd valid to iochrdy deasserted t8 0 85 ns wait deasserted to iochrdy deasserted t9 60 160 ns pd hi-z to pdbir set t10 0 ns write deasserted to ior asserted t13 0 ns wait asserted to write deasserted t14 0 185 ns deasserted to write modified t15 60 190 ns ior asserted to pd hi-z t16 0 50 ns wait asserted to pd hi-z t17 60 180 ns command asserted to pd valid t18 0 ns command deasserted to pd hi-z t19 0 ns wait deasserted to pd drive t20 60 190 ns write deasserted to command t21 1 ns pbdir set to command t22 0 20 ns pd hi-z to command asserted t23 0 30 ns asserted to command asserted t24 0 195 ns wait deasserted to command deasserted t25 60 180 ns time out t26 10 12 ns pd valid to wait deasserted t27 0 ns pd hi-z to wait deasserted t28 0 m s
W83877TF publication release date: march 1998 - 135 - version 0.61 9.3.5 epp data or address write cycle timing parameters parameter sym. min. max. unit ax valid to iow asserted t1 40 ns sd valid to asserted t2 10 ns iow deasserted to ax invalid t3 10 ns wait deasserted to iochrdy deasserted t4 0 ns command asserted to wait deasserted t5 10 ns iow deasserted to iow or ior asserted t6 40 ns iochrdy deasserted to iow deasserted t7 0 24 ns wait asserted to command asserted t8 60 160 ns iow asserted to wait asserted t9 0 70 ns pbdir low to write asserted t10 0 ns wait asserted to write asserted t11 60 185 ns wait asserted to write change t12 60 185 ns iow asserted to pd valid t13 0 50 ns wait asserted to pd invalid t14 0 ns pd invalid to command asserted t15 10 ns iow to command asserted t16 5 35 ns wait asserted to command asserted t17 60 210 ns wait deasserted to command deasserted t18 60 190 ns command asserted to wait deasserted t19 0 10 m s time out t20 10 12 m s command deasserted to wait asserted t21 0 ns iow deasserted to write deasserted and pd invalid t22 0 ns
W83877TF publication release date: march 1998 - 136 - version 0.61 9.3.6 parallel port fifo timing parameters parameter symbol min. max. unit data valid to nstrobe active t1 600 ns nstrobe active pulse width t2 600 ns data hold from nstrobe inactive t3 450 ns busy inactive to pd inactive t4 80 ns busy inactive to nstrobe active t5 680 ns nstrobe active to busy active t6 500 ns 9.3.7 ecp parallel port forward timing parameters parameter symbol min. max. unit nautofd valid to nstrobe asserted t1 0 60 ns pd valid to nstrobe asserted t2 0 60 ns busy deasserted to nautofd changed t3 80 180 ns busy deasserted to pd changed t4 80 180 ns nstrobe deasserted to busy deasserted t5 0 ns busy deasserted to nstrobe asserted t6 80 200 ns nstrobe asserted to busy asserted t7 0 ns busy asserted to nstrobe deasserted t8 80 180 ns 9.3.8 ecp parallel port reverse timing parameters parameter symbol min. max. unit pd valid to nack asserted t1 0 ns nautofd deasserted to pd changed t2 0 ns nautofd asserted to nack asserted t3 0 ns nautofd deasserted to nack deasserted t4 0 ns nack deasserted to nautofd asserted t5 80 200 ns pd changed to nautofd deasserted t6 80 200 ns
W83877TF publication release date: march 1998 - 137 - version 0.61 10.0 timing waveforms 10.1 fdc processor read operation wd write date aen sa0-sa9 cs twdd tar tdh tdf tra index tidx tidx index taw twd twa processor write operation terminal count reset ttc tc trst reset dma operation irq d0-d7 dack ior irq d0-d7 aen sa0-sa9 dack iow drive seek operation step dir tdst tstp tstd trr tr tfd tsc tmw (iow) tmr (ior) tma tam drq dack iow or ior tmcy taa tmrw tww twi tdw
W83877TF publication release date: march 1998 - 138 - version 0.61 10.2 uart/parallel trint star data bits (5-8) parity stop tsint star parity data (5-8) stop (1-2) star tir thr tsi thr thrs tsti sin (receiver input data) irq3 or irq4 ior (read receiver buffer register) serial out (sout) iow (write thr) irq3 or irq4 ior (read tir) receiver timing transmitter timing
W83877TF publication release date: march 1998 - 139 - version 0.61 10.2.1 modem control timing ack irq7 ri ior (read msr) iow (write mcr) rts,dtr cts,dsr dcd modem control timing x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ?? ? ? ? tlid tlad printer interrupt timing ?? tsim ?? ?? ? ?? ? tmwo tmwo ?? ? tsim ? ?? ? ?? ? ?? trim trim tsim irq3 or irq4
W83877TF publication release date: march 1998 - 140 - version 0.61 10.3 parallel port 10.3.1 parallel port timing iow init, strobe autofd, slctin ack irq (spp) irq (epp or ecp) nfault (ecp) error (ecp) irq t1 t2 t3 t4 t5 t2 t4 pd<0:7>
W83877TF publication release date: march 1998 - 141 - version 0.61 10.3.2 epp data or address read cycle (epp version 1.9) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
W83877TF publication release date: march 1998 - 142 - version 0.61 10.3.3 epp data or address write cycle (epp version 1.9) t3 addrstb a10-a0 iow iochrdy write datast t1 t2 wait t4 t5 t6 t20 t19 t 7 t9 t10 t11 t13 t15 t16 t17 t22 t8 t18 t21 t12 t14 sd<0:7> pd<0:7> pbdir
W83877TF publication release date: march 1998 - 143 - version 0.61 10.3.4 epp data or address read cycle (epp version 1.7) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
W83877TF publication release date: march 1998 - 144 - version 0.61 10.3.5 epp data or address write cycle (epp version 1.7) t3 addrstb a10-a0 iochrdy write datast t1 t2 iow wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t8 t18 t22 t22 sd<0:7> pd<0:7> 10.3.6 parallel port fifo timing nstrobe busy > t3 >| >| >| t1 >| t2 t6 >| t5 t4 pd<0:7>
W83877TF publication release date: march 1998 - 145 - version 0.61 10.3.7 ecp parallel port forward timing t3 nautofd t1 t2 nstrobe busy t5 t7 t5 t6 t8 t4 pd<0:7> 10.3.8 ecp parallel port reverse timing t1 t5 nack nautofd t3 t6 t4 t5 t2 pd<0:7>
W83877TF publication release date: march 1998 - 146 - version 0.61 11.0 application circuits 11.1 parallel port extension fdd 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd7 pd6 pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 parallel port extension fdd mode connection diagram
W83877TF publication release date: march 1998 - 147 - version 0.61 11.2 parallel port extension 2fdd 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 dsa2 moa2 parallel port extension 2fdd connection diagram dsa2/pd7 moa2/pd6 11.3 four fdd mode g1 a1 b1 g2 a2 b2 1y0 1y1 1y2 1y3 2y0 2y1 2y2 2y3 dsa moa dsa dsb moa mob w83777f 74ls139 7407(2) mod moc mob dsc dsd dsb
W83877TF publication release date: march 1998 - 148 - version 0.61 12.0 ordering information part no. package W83877TF 100-pin qfp w83877td 100-pin lqfp 13.0 how to read the top marking example: the top marking of w83977tf-a inbond W83877TF 719ab27039520 1st line: winbond logo 2nd line: the type number: W83877TF 3rd line: tracking code 719 a b 2 7039530 719 : packages made in '9 7 , week 19 a : assembly house id; a means ase, s means spil....etc c : ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 7039530 : wafer production series lot number
W83877TF publication release date: march 1998 - 149 - version 0.61 14.0 package dimensions W83877TF (100-pin qfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b e h e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.10 0 12 0 0.004 3.30 0.10 0.130 0.004 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 12 2.40 1.40 19.10 1.20 18.80 1.00 18.49 0.094 0.055 0.988 0.752 0.047 0.976 0.740 0.039 0.964 0.728 0.65 20.13 14.13 0.25 0.40 2.97 20.00 14.00 2.85 19.87 13.87 0.10 0.25 2.73 0.792 0.556 0.010 0.016 0.117 0.787 0.551 0.112 0.026 0.782 0.546 0.004 0.010 0.107 0.012 0.006 0.15 0.30 24.49 24.80 25.10 0.020 0.087 0.032 0.103 0.50 0.80 2.21 2.62 a b c d e h d h e l y a a l 1 1 2 e q q
W83877TF publication release date: march 1998 - 150 - version 0.61 w83877td (100-pin lqfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b e h e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.08 0 7 0 0.003 0.05 0.002 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 7 1.00 0.75 16.10 0.60 16.00 0.45 15.90 0.039 0.030 0.870 0.634 0.024 0.866 0.630 0.018 0.862 0.626 0.65 20.10 14.10 0.20 0.38 1.45 20.00 14.00 1.40 19.90 13.90 0.10 0.22 1.35 0.791 0.555 0.008 0.015 0.057 0.787 0.551 0.055 0.026 0.783 0.547 0.004 0.009 0.053 0.013 0.006 0.15 0.32 21.90 22.00 22.10 0.020 0.032 0.498 0.802 a b c d e h d h e l y a a l 1 1 2 e q q 0.004 0.006 0.10 0.15 headquarters no. 4, creation rd. iii science-based industrial park hsinchu, taiwan tel: 886-35-770066 fax: 886-35-789467 www: http://www.winbond.com.tw/ taipei office 11f, no. 115, sec. 3, min-sheng east rd. taipei, taiwan tel: 886-2-7190505 fax: 886-2-7197502 tlx: 16485 wintpe winbond electronics (h.k.) ltd. rm. 803, world trade square, tower ii 123 hoi bun rd., kwun tong kowloon, hong kong tel: 852-27516023-7 fax: 852-27552064 winbond electronics (north america) corp. 2730 orchard parkway san jose, ca 95134 u.s.a. tel: 1-408-9436666 fax: 1-408-9436668 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners.
W83877TF publication release date: march 1998 - 70 - version 0.61 8.2 extended function index registers (efirs), extended function data registers (efdrs) after the extended function mode is entered, the extended function index register (efir) must be loaded with an index value (0h, 1h, 2h, ..., or 29h) to access configuration register 0 (cr0), configuration register 1 (cr1), configuration register 2 (cr2), and so forth through the extended function data register (efdr). the efirs are write-only registers with port address 251h or 3f0h (as described in section 8.0) on pc/at systems; the efdrs are read/write registers with port address 252h or 3f1h (as described in section 8.0) on pc/at systems. the function of each configuration register is described below. 8.2.1 configuration register 0 (cr0), default = 00h when the device is in extended function mode and efir is 0h, the cr0 register can be accessed through efdr. the bit definitions for cr0 are as follows: 7 6 5 4 3 2 1 0 ipd reserved reserved reserved reserved reserved prtmods0 prtmods1 bit 7-bit 4: reserved. prtmod1 prtmod0 (bit 3, 2): these two bits and prtmod2 (cr9 bit 7) determine the parallel port mode of the W83877TF (as shown in the following table 8-1). table 8-1 prtmods2 (bit 7 of cr9) prtmods1 (bit 3 of cr0) prtmods0 (bit 2 of cr0) 0 0 0 normal 0 0 1 extfdc 0 1 0 reserved 0 1 1 ext2fdd 1 0 0 reserved 1 0 1 epp/spp 1 1 0 ecp 1 1 1 ecp/epp
W83877TF publication release date: march 1998 - 71 - version 0.61 00 normal mode (default), prtmod2 = 0 default state after power-on reset. in this mode, the W83877TF is fully compatible with the spp and bpp mode. 01 extension fdd mode (extfdd), prtmod2 = 0 10 reserved, prtmod2 = 0 11 extension 2fdd mode (ext2fdd), prtmod2 = 0 00 reserved, prtmod2 = 1 01 epp mode and spp mode, prtmod2 = 1 10 ecp mode, prtmod2 = 1 11 ecp mode and epp mode, prtmod2 = 1 bit 1: reserved. ipd (bit 0): this bit is used to select the W83877TF's legacy power-down functions. when the bit 0 is set to 1, the W83877TF will stop its clock internally and enter power-down (ipd) mode immediately. the W83877TF will not leave the power-down mode until either a system power-on reset from the mr pin or this bit is reset to 0 to program the chip back to power-on state. 8.2.2 configuration register 1 (cr1), default = 00h when the device is in extended function mode and efir is 01h , the cr1 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 reserved reserved reserved reserved reserved reserved reserved abchg abchg (bit 7): this bit enables the fdc ab change mode. default to be enabled at power-on reset. 0 drives a and b assigned as usual 1 drive a and drive b assignments exchanged bit 6-bit 0: reserved.
W83877TF publication release date: march 1998 - 72 - version 0.61 8.2.3 configuration register 2 (cr2), default = 00h when the device is in extended function mode and efir is 02h, the cr2 register can be accessed through efdr. this register is reserved. 8.2.4 configuration register 3 (cr3), default = 30h when the device is in extended function mode and efir is 03h, the cr3 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 submidi suamidi reserved reserved reserved eppver reserved reserved bit 7-bit 6: reserved. eppver (bit 5): this bit selects the epp version of parallel port: 0 selects the epp 1.9 version 1 selects the epp 1.7 version (default) bit 4: reserved. bit 3-bit 2: reserved. suamidi (bit 1): this bit selects the clock divide rate of uarta. 0 disables midi support, uarta clock = 24 mhz divided by 13 (defau lt) 1 enables midi support, uarta clock = 24 mhz divided by 12 submidi (bit 0): this bit selects the clock divide rate of uartb. 0 disables midi support, uartb clock = 24 mhz divided by 13 (default) 1 enables midi support, uartb clock = 24 mhz divided by 12
W83877TF publication release date: march 1998 - 73 - version 0.61 8.2.5 configuration register 4 (cr4), default = 00h when the device is in extended function mode and efir is 04h, the cr4 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 urbtri uratri reserved prttri urbpwd urapwd reserved prtpwd prtpwd (bit 7): 0 supplies power to the parallel port (default) 1 puts the parallel port in power-down mode bit 6: reserved. urapwd (bit 5): 0 supplies power to coma (default) 1 puts coma in power-down mode urbpwd (bit 4): 0 supplies power to comb (default) 1 puts comb in power-down mode prttri (bit 3): this bit enables or disables the tri-state outputs of parallel port in power-down mode. 0 the output pins of the parallel port will not be tri-stated when parallel port is in power - down mode. (default) 1 the output pins of the parallel port will be tri-stated when parallel port is in power- down mode. bit 2: reserved. uratri (bit 1): this bit enables or disables the tri-state outputs of uarta in power-down mode. 0 the output pins of uarta will not be tri-stated when uarta is in power-down mode. 1 the output pins of uarta will be tri-stated when uarta is in power-down mode. urbtri (bit 0): this bit enables or disables the tri-state outputs of uartb in power-down mode. 0 the output pins of uartb will not be tri-stated when uartb is in power-down mode. 1 the output pins of uartb will be tri-stated when uartb is in power-down mode.
W83877TF publication release date: march 1998 - 74 - version 0.61 8.2.6 configuration register 5 (cr5), default = 00h when the device is in extended function mode and efir is 05h, the cr5 register can be accessed through efdr. the bit definitions are as follows: 7 0 ecpfthr0 ecpfthr1 ecpfthr2 reserved reserved reserved reserved ecpfthr3 6 5 4 3 2 1 bit 7- bit 4: reserved ecpfthr3-0 (bit 3-0): these four bits define the fifo threshold for the ecp mode parallel port. the default value is 0000 after power-up. 8.2.7 configuration register 6 (cr6), default = 00h when the device is in extended function mode and efir is 06h, the cr6 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdctri reserved fdcpwd fipurdwm sel4fdd reserved reserved reserved bit 7- bit 6: reserved sel4fdd (bit 5): selects four fdd mode 0 selects two fdd mode (default, see table 8-2) 1 selects four fdd mode dsa , dsb , moa and mob output pins are encoded as show in table 8-3 to select four drives.
W83877TF publication release date: march 1998 - 75 - version 0.61 table 8-2 do register ( 3f2h ) mob moa dsb dsa drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 selected 0 0 0 0 0 0 1 1 1 1 -- 0 0 0 1 0 0 1 0 1 0 fdd a 0 0 1 0 0 1 0 1 0 1 fdd b 0 1 0 0 0 1 1 1 1 1 -- 1 0 0 0 1 1 1 1 1 1 -- table 8-3 do register ( 3f2h ) mob moa dsb dsa drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 selected 0 0 0 0 x x 1 1 x x -- 0 0 0 1 0 0 0 0 0 0 fdd a 0 0 1 0 0 1 0 0 0 1 fdd b 0 1 0 0 1 0 0 0 1 0 fdd c 1 0 0 0 1 1 0 0 1 1 fdd d fipurdwn (bit 4): this bit controls the internal pull-up resistors of the fdc input pins rdata , index , trak 0 , dskchg , and wp . 0 the internal pull-up resistors of fdc are turned on. (default) 1 the internal pull-up resistors of fdc are turned off. fdcpwd (bit 3): this bit controls the power to the fdc. 0 power is supplied to the fdc. (default) 1 puts the fdc in power-down mode. bit 2: reserved. fdctri (bit 1): this bit enables or disables the tri-state outputs of the fdc in power-down mode. 0 the output pins of the fdc will not be tri-stated when fdc is in power-down mode. 1 the output pins of the fdc will be tri-stated when fdc is in power-down mode. bit 0: reserved.
W83877TF publication release date: march 1998 - 76 - version 0.61 8.2.8 configuration register 7 (cr7), default = 00h when the device is in extended function mode and efir is 07h, the cr7 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdd a type 0 fdd a type 1 fdd b type 0 fdd b type 1 fdd c type 0 fdd c type 1 fdd d type 0 fdd d type 1 fdd d type 1, 0 (bit 7, 6): these two bits select the type of fdd d. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. fdd c type 1, 0 (bit 5, 4): these two bits select the type of fdd c. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, he data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. fdd b type 1, 0 (bit 3, 2): these two bits select the type of fdd b. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd.
W83877TF publication release date: march 1998 - 77 - version 0.61 fdd a type 1, 0 (bit 1, 0): these two bits select the type of fdd a. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. 8.2.9 configuration register 8 (cr8), default = 00h when the device is in extended function mode and efir is 08h, the cr8 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 floppy boot drive 0 floppy boot drive 1 media id 0 media id 1 disfddwr reserved reserved swwp bit 7 - bit 6: reserved. disfddwr (bit 5): this bit enables or disables fdd write data. 0 enables fdd write 1 disables fdd write (forces pins we , wd to stay high) once this bit is set high, the fdc operates normally, but because pin we is inactive, the fdd will not write data to diskettes. for example, if a diskette is formatted with disfddwr = 1, after the format command has been executed, messages will be displayed that appear to indicate that the format is complete. if the diskette is removed from the disk drive and inserted again, however, typing the dir command will reveal that the contents of the diskette have not been modified and the diskette was not actually reformatted.
W83877TF publication release date: march 1998 - 78 - version 0.61 because as the operating system (e.g., dos) reads the diskette files, it keeps the files in memory, if there is a write operation, dos will write data to the diskette and memory simultaneously. when dos wants to read the diskette, it will first search for the files in memory. if dos finds the file in memory, it will not issue a read command to read the diskette. when disfddwr = 1, dos still writes data to the diskette and memory, but only the data in memory are updated. if a read operation is performed, data are read from memory first, and not from the diskette. the action of removing the diskette from the drive and inserting it again forces the dskchg pin active. dos will then read the contents of the diskette and will show that the contents have not been modified. the same holds true with write commands. this disable fdd write function allows users to protect diskettes against computer viruses by ensuring that no data are written to the diskette. swwp (bit 4): 0 normal, use wp to determine whether the fdd is write-protected or not 1 fdd is always write-protected media id 1 media id 0 (bit 3, 2): these two bits hold the media id bit 1, 0 for three mode floppy boot drive 1 floppy boot drive 0 (bit 1, 0) these two bits hold the value of floppy boot drive 1 and drive 0 for three mode 8.2.10 configuration register 9 (cr9), default = 0ch when the device is in extended function mode and efir is 09h, the cr9 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 chip id0 chip id1 chip id2 chip id3 reserved lockreg en3mode prtmods2 prtmods2 (bit 7): this bit and prtmods1, prtmods0 (bits 3, 2 of cr0) select the operating mode of the W83877TF. refer to the descriptions of cr0. lockreg (bit 6): this bit enables or disables the reading and writing of all configuration registers. 0 enables the reading and writing of cr0-cr45 1 disables the reading and writing of cr0-cr45 (locks W83877TF extension functions)
W83877TF publication release date: march 1998 - 79 - version 0.61 en3mode (bit 5): this bit enables or disables three mode fdd selection. when this bit is high, it enables the read/write 3f3h register. 0 disables 3 mode fdd selection 1 enables 3 mode fdd selection when three mode fdd function is enabled, the value of rwc depends on bit 5 and bit 4 of tdr(3f3h). the values of rwc and their meaning are shown in table 8-4. table 8-4 bit 5 of tdr bit 4 of tdr rwc rwc = 0 rwc = 1 0 0 normal 250k bps 500k bps 0 1 0 1.2 m fdd x 1 0 1 x 1.4m fdd 1 1 x x x bit 4: reserved. chip id 3, chip id 2, chip id 1, chip id 0 (bit 3-bit 0): these four bits are read-only bits that contain chip identification information. the value is 0ch for W83877TF during a read. 8.2.11 configuration register a (cr0a), default = 00h when the device is in extended function mode and efir is 0ah , the cra register can be accessed through efdr. this register is reserved. 8.2.12 configuration register b (cr0b), default = 0ch when the device is in extended function mode and efir is 0bh, the crb register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 drv2en invertz ident enifchg mfm rxw4c txw4c reserved
W83877TF publication release date: march 1998 - 80 - version 0.61 bit 7: reserved. txw4c (bit 6): this bit is active high. when active, the ir controller will wait for a 4-character period of time after the end of last receiving before it can start transmitting data. rxw4c (bit 5): this bit is active high. when active, the ir controller will wait for a 4-character period of time after the end of last transmitting before it can start receiving data. enifchg (bit 4): this bit is active high. when active, it enables host interface mode change, which is determined by ident (bit 3) and mfm (bit 2). ident (bit 3): this bit indicates the type of drive being accessed and changes the level on rwc (pin 87). 0 rwc will be active low for high data rates (typically used for 3.5" drives) 1 rwc will be active high for high data rates (typically used for 5.25" drives) when hardware reset or enifchg is a logic 1, ident and mfm select one of three interface modes, as shown in table 8-5. table 8-5 ident mfm interface 0 0 model 30 mode 0 1 ps/2 mode 1 0 at mode 1 1 at mode mfm (bit 2): this bit and ident select one of the three interface modes (ps/2 mode, model 30, or pc/at mode). intvertz (bit 1): this bit determines the polarity of all fdd interface signals. 0 fdd interface signals are active low 1 fdd interface signals are active high drv 2 en (bit 0): ps/2 mode only when this bit is a logic 0, this indicates that a second drive is installed and is reflected in status register a.
W83877TF publication release date: march 1998 - 81 - version 0.61 8.2.13 configuration register c (cr0c), default = 28h when the device is in extended function mode and efir is 0ch, the cr0c register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tx2inv rx2inv reserved urirsel reserved hefere turb tura tura (bit 7): 0 the clock source of uart a is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart a is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz turb (bit 6): 0 the clock source of uart b is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart b is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz hefere (bit 5): this bit combines with hefras (cr16 bit 0) to define how to enable extended function registers. hefras hefere address and value 0 0 write 88h to the location 250h 0 1 write 89h to the location 250h (default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice the default value of hefere is 1. bit 4: reserved. urirsel (bit 3): 0 select uart b as ir function. 1 select uart b as normal function. the default value of urirsel is 1. bit 2: reserved. rx2inv (bit 1): 0 the sinb pin of uart b function or irrx pin of ir function in normal condition. 1 inverse the sinb pin of uart b function or irrx pin of ir function tx2inv (bit 0): 0 the soutb pin of uart b function or irtx pin of ir function in normal condition. 1 inverse the soutb pin of uart b function or irtx pin of ir function.
W83877TF publication release date: march 1998 - 82 - version 0.61 8.2.14 configuration register d (cr0d), default = a3h when the device is in extended function mode and efir is 0dh, the cr0d register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 sirtx1 (bit 7): irtx pin selection bit 1 sirtx0 (bit 6): irtx pin selection bit 0 sirtx1 sirtx0 irtx output on pin 0 0 disabled 0 1 irtx1 (pin 43) 1 0 irtx2 (pin 95) 1 1 disabled sirrx1 (bit 5): irrx pin selection bit 1 sirrx0 (bit 4): irrx pin selection bit 0 sirrx1 sirrx0 irrx input on pin 0 0 disabled 0 1 irrx1 (pin 42) 1 0 irrx2 (pin 94) 1 1 disabled hduplx (bit 3): 0 the ir function is full duplex. 1 the ir function is half duplex. irmode2 (bit 2): ir function mode selection bit 2 irmode1 (bit 1): ir function mode selection bit 1 irmode0 (bit 0): ir function mode selection bit 0
W83877TF publication release date: march 1998 - 83 - version 0.61 ir mode ir function irtx irrx 00x disable tri-state high 010* irda active pulse 1.6 m s demodulation into sinb 011* irda active pulse 3/16 bit time demodulation into sinb 100 ask-ir inverting irtx pin routed to sinb 101 ask-ir inverting irtx & 500 khz clock routed to sinb 110 ask-ir inverting irtx demodulation into sinb 111* ask-ir inverting irtx & 500 khz clock demodulation into sinb note: the notation is normal mode in the ir function. the sir schematic diagram for registers crc and crd is shown below. 1 0 1 mux 0 1 0 01 00 10 11 11,00 01 10 1 mux 0 1 mux 0 1 0 mux irda mod. 3/16 irda mod. mod1.6u irda irmode0 irmode2 (crd.bit2) urirsel (crc,bit3) transmission time frame 16550a sin uart2 sout rx2inv (crc.bit1) urirsel (crc.bit3) 1 0 mux sirrx1~0 cr0d.bit5,4 ask_ir sin2 irmode1 (crd.bit3) huplx irmode0 (crd.bit0) 500khz mux mux (crd.bit1) irmode2 (crd.bit2) irmode2,1=00 (crd.bit0) disable irtx1 irtx2 sout2 ncs1 irrx1 irrx2 +5v ncs0 +5v sirtx1~0 crd.bit7,6 tx2inv crc.bit0 mux mux ir-da demodulation demodulation (default) (default) 8.2.15 configuration register e (cr0e), configuration register f (cr0f) reserved for testing. should be kept all 0's.
W83877TF publication release date: march 1998 - 84 - version 0.61 8.2.16 configuration register 10 (cr10), default = 00h when the device is in extended function mode and efir is 10h, the cr10 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio0ad7 gio0ad0 gio0ad1 gio0ad2 gio0ad3 gio0ad4 gio0ad5 gio0ad6 gio0ad7-gio0ad0 (bit 7-bit 0): giop0 (pin 92) address bit 7 - bit 0. 8.2.17 configuration register 11 (cr11), default = 00h when the device is in extended function mode and efir is 11h, the cr11 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g0cadm1 gio0ad8 gio0ad9 gio0ad10 reserved g0cadm0 reserved reserved g0cadm1-g0cadm0 (bit 7, 6): giop0 address bit compare mode selection g0cadm1 g0cadm0 giop0 pin 0 0 compare gio0ad10-gio0ad0 with sa10-sa0 0 1 compare gio0ad10-gio0ad1 with sa10-sa1 1 0 compare gio0ad10-gio0ad2 with sa10-sa2 1 1 compare gio0ad10-gio0ad3 with sa10-sa3 bit 5-bit 3: reserved gio0ad10-gio0ad8 (bit 2-bit 0): giop0 (pin 92) address bit 10-bit 8.
W83877TF publication release date: march 1998 - 85 - version 0.61 8.2.18 configuration register 12 (cr12), default = 00h when the device is in extended function mode and efir is 12h, the cr12 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio1ad7 gio1ad0 gio1ad1 gio1ad2 gio1ad3 gio1ad4 gio1ad5 gio1ad6 gio1ad7-gio1ad0 (bit 7-bit 0): giop1 (pin 96) address bit 7-bit 0. 8.2.19 configuration register 13 (cr13), default = 00h when the device is in extended function mode and efir is 13h, the cr13 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g1cadm1 gio1ad8 gio1ad9 gio1ad10 reserved g1cadm0 reserved reserved g1cadm1-g1cadm0 (bit 7, 6): giop1 address bit compare mode selection g1cadm1 g1cadm0 giop1 pin 0 0 compare gio1ad10-gio1ad0 with sa10-sa0 0 1 compare gio1ad10-gio1ad1 with sa10-sa1 1 0 compare gio1ad10-gio1ad2 with sa10-sa2 1 1 compare gio1ad10-gio1ad3 with sa10-sa3 bit 5- bit 3: reserved gio1ad10-gio1ad8 (bit 2-bit 0): giop1 (pin 96) address bit 10-bit 8.
W83877TF publication release date: march 1998 - 86 - version 0.61 8.2.20 configuration register 14 (cr14), default = 00h when the device is in extended function mode and efir is 14h, the cr14 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2 giop0md2-giop0md0 (bit 7-bit 5): giop0 pin mode selection giop0md2 giop0md1 giop0md0 giop0 pin 0 0 0 0 0 1 inactive (tri-state) as a data output pin (sd0 ? giop0), when (aen = l) and (niow = l) and (sa10-0 = gio0ad10-0), the value of sd0 will be present on giop0 0 1 0 as a data input pin (giop0 ? sd0), when (aen = l) and (nior = l) and (sa10-0 = gio0ad10-0), the value of giop0 will be present on sd0 0 1 1 as a data input/output pin (giop0 ? sd0). when (aen = l) and (niow = l) and (sa10-0 = gio0ad10-0), the value of sd0 will be present on giop0 when (aen = l) and (nior = l) and (sa10- 0 = gio0ad10-0), the value of giop0 will be present on sd0 1 x x as a chip select pin, the pin will be active at (aen = l) and (sa10-0 = gio0ad10-0) or (nior = l) or (niow = l) gio0csh(bit 4): 0 the chip select pin will be active low when (aen = l) and (sa10-0 = gio0ad10- 0) or (nior = l) or (niow = l) 1 the chip select pin will be active high when (aen = l) and (sa10-0 = gio0ad10- 0) or (nior = l) or (niow = l) gcs0ior (bit 3): see below.
W83877TF publication release date: march 1998 - 87 - version 0.61 gcs0iow (bit 2): see below. gcs0ior gcs0iow 0 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) 0 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (niow = l) 1 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (nior = l) 1 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (niow = l or nior = l) gda0opi (bit 1): see below. gda0ipi (bit 0): see below. gda0opi gda0ipi 0 0 giop0 functions as a data pin, and giop0 ? sd0, sd0 ? giop0 0 1 giop0 functions as a data pin, and inverse giop0 ? sd0, sd0 ? giop0 1 0 giop0 functions as a data pin, and giop0 ? sd0, inverse sd0 ? giop0 1 1 giop0 functions as a data pin, and inverse giop0 ? sd0, inverse sd0 ? giop0 8.2.21 configuration register 15 (cr15), default = 00h when the device is in extended function mode and efir is 15h, the cr15 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2
W83877TF publication release date: march 1998 - 88 - version 0.61 giop1md2-giop1md0 (bit 7-bit 5): giop1 pin mode selection giop1md2 giop1md1 giop1md0 giop1 pin 0 0 0 inactive (tri-state) 0 0 1 as a data output pin (sd1 ? giop1), when (aen = l) and (niow = l) and (sa10-0 = gio1ad10-0), the value of sd1 will be present on giop1 0 1 0 as a data input pin (giop1 ? sd1), when (aen = l) and (nior = l) and (sa10-0 = gio1ad10-0), the value of giop1 will be present on sd1 0 1 1 as a data input/output pin (giop1 ? sd1). when (aen = l) and (niow = l) and (sa10-0 = gio1ad10-0), the value of sd1 will be present on giop1 when (aen = l) and (nior = l) and (sa10- 0 = gio1ad10-0), the value of giop1 will be present on sd1 1 x x as a chip select pin, the pin will be active at (aen = l) and (sa10-0 = gio1ad10-0) or (nior = l) or (niow = l) gio1csh (bit 4): 0 the chip select pin will active low when (aen = l) and (sa10-0 = gioad10-0) or (nior = l) or (niow = l) 1 the chip select pin will active high when (aen = l) and (sa10-0 = gioad10-0) or (nior = l) or (niow = l) gcs1ior (bit 3): see below. gcs1iow (bit 2): see below. gcs1ior gcs1iow 0 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) 0 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (niow = l) 1 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (nior = l) 1 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (niow = l or nior = l) gda0opi (bit 1): see below.
W83877TF publication release date: march 1998 - 89 - version 0.61 gda1ipi (bit 0): see below. gda1opi gda1ipi 0 0 giop1 functions as a data pin, and giop1 ? sd1, sd1 ? giop1 0 1 giop1 functions as a data pin, and inverse giop1 ? sd1, sd1 ? giop1 1 0 giop1 functions as a data pin, and giop1 ? sd1, inverse sd1 ? giop1 1 1 giop1 functions as a data pin, and inverse giop1 ? sd1, inverse sd1 ? giop1 8.2.22 configuration register 16 (cr16), default = 04h when the device is in extended function mode and efir is 16h, the cr16 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 hefras reserved pnpcvs reserved g0iqsel g1iqsel reserved reserved bit 7-bit 6: reserved. g1iqsel (bit 5): 0 pin 96 function as irq_a. 1 pin 96 function as gio1. the corresponding power-on setting pin is nrtsb (pin 45). g0iqsel (bit 4): 0 pins 92 function as irq_b. 1 pins 92 function as gio0. the corresponding power-on setting pin is nrtsb (pin 45). bit 3: reserved. pnpcvs (bit 2): 0 pnp-related registers (cr20, cr23-29) reset to be all 0s. 1 default settings for these registers.
W83877TF publication release date: march 1998 - 90 - version 0.61 the corresponding power-on setting pin is nrtsa (pin 36). pnp register pnpcvs = 1 pnpcvs = 0 cr20 fch 00h cr23 deh 00h cr24 feh 00h cr25 beh 00h cr26 23h 00h cr27 05h 00h cr28 43h 00h cr29 60h 00h note: the new value of pnpcvs must be complementary to the old one to make an effective change. for example, the user must set pnpcvs to 1 first and then reset it to 0 to reset these pnp registers if the present value of pnpcvs is 0. bit 1: reserved. hefras (bit 0): combines with hefere (bit 5 of cr0c) to define how to access extended function registers (refer to bit 5 of cr0c description). the corresponding power-on setting pin is ndtra (pin 35). 8.2.23 configuration register 17 (cr17), default = 00h when the device is in extended function mode and efir is 17h, the cr17 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 dsublgrq dsualgrq dsprlgrq dsfdlgrq prirqod reserved reserved reserved bit 7-bit 5: reserved.
W83877TF publication release date: march 1998 - 91 - version 0.61 prirqod (bit 4): 0 printer irq ports are totem-poles in spp mode and open-drains in ecp/epp mode. 1 printer irq ports are totem-poles in all modes. dsfdlgrq (bit 3): 0 enable fdc legacy mode on irq and drq selections. do register bit 3 has effect on selecting irq. 1 disable fdc legacy mode on irq and drq selections. do register bit 3 has no effect on selecting irq. dsprlgrq (bit 2): 0 enable prt legacy mode on irq and drq selections. dcr bit 4 has effect on selecting irq. 1 disable prt legacy mode on irq and drq selections. dcr bit 4 has no effect on selecting irq. dsualgrq (bit 1): 0 enable uart a legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart a legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. dsublgrq (bit 0): 0 enable uart b legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart b legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. 8.2.24 configuration register 18 (cr18), default=00h when the device is in extended function mode and efir is 18h, the cr18 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 shara sharb sharc shard share sharf sharg sharh
W83877TF publication release date: march 1998 - 92 - version 0.61 this register is used to select whether these interrupt request pins are in the irq sharing mode. while in the irq sharing mode, the corresponding pin is low active for 200ns for the interrupt request and keeps tri-stated otherwise. sharh (bit 7): 0 pin irq_h in the legacy isa irq mode. 1 pin irq_h in the irq sharing mode. sharg (bit 6): 0 pin irq_g in the legacy isa irq mode. 1 pin irq_g in the irq sharing mode. sharf (bit 5): 0 pin irq_f in the legacy isa irq mode. 1 pin irq_f in the irq sharing mode. share (bit 4): 0 pin irq_e in the legacy isa interrupt mode. 1 pin irq_e in the irq sharing mode. shard (bit 3): 0 pin irq_d in the legacy isa irq mode. 1 pin irq_d in the irq sharing mode. sharc (bit 2): 0 pin irq_c in the legacy isa irq mode. 1 pin irq_c in the irq sharing mode. sharb(bit 1): 0 pin irq_b in the legacy isa irq mode. 1 pin irq_b in the irq sharing mode. shara (bit 0): 0 pin irq_a in the legacy isa irq mode. 1 pin irq_a in the irq sharing mode.
W83877TF publication release date: march 1998 - 93 - version 0.61 8.2.25 configuration register 19 (cr19), default=00h when the device is in extended function mode and efir is 19h, the cr19 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fastb fasta reserved reserved reserved reserved reserved reserved this register is used for the high speed modem application. while the bit is set to logic 1 it can make the baudrate of uart up to 921.2kbps (the clock source of uart is 14.769mhz) for high speed transmit/receive. bit 7 - bit 2: reserved. fasta (bit 1): 0 the clock source of uart a is the same as the frequency of tura (cr0c bit 7) and suamidi (cr3 bit 1) selected. 1 the clock source of uart a is 14.769mhz. fastb (bit 0): 0 the clock source of uart b is the same as the frequency of turb (cr0c bit 6) and submidi (cr3 bit 0) selected. 1 the clock source of uart b is 14.769mhz. 8.2.26 configuration register 20 (cr20) when the device is in extended function mode and efir is 20h, the cr20 register can be accessed through efdr. default = fch if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved fdcad2 fdcad3 fdcad4 fdcad5 fdcad6 fdcad7
W83877TF publication release date: march 1998 - 94 - version 0.61 this register is used to select the base address of the floppy disk controller (fdc) from 100h-3f0h on 16-byte boundaries. ncs = 0 and a10 = 0 are required to access the fdc registers. a[3:0] are always decoded as 0xxxb. fdcad7-fdcad2 (bit 7-bit 2): match a[9:4]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 1-bit 0: reserved, fixed at zero. 8.2.27 configuration register 23 (cr23) when the device is in extended function mode and efir is 23h, the cr23 register can be accessed through efdr. default = deh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtad0 prtad1 prtad2 prtad3 prtad4 prtad5 prtad6 prtad7 this register is used to select the base address of the parallel port. if epp is disable, the parallel port can be set from 100h-3fch on 4-byte boundaries. if epp is enable, the parallel port can be set from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to access the parallel port when in compatible, bi-directional, or epp modes. a10 is active in ecp mode. prtad7-prtad0 (bit 7-bit 0): match a[9:2]. bit 7 = 0 and bit 6 = 0 disable this decode. 8.2.28 configuration register 24 (cr24) when the device is in extended function mode and efir is 24h, the cr24 register can be accessed through efdr. default = feh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved uraad1 uraad2 uraad3 uraad4 uraad5 uraad6 uraad7 this register is used to select the base address of the uart a from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to access the uart a registers. a[2:0] are don't-care conditions.
W83877TF publication release date: march 1998 - 95 - version 0.61 uraad7-uraad1 (bit 7-bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 8.2.29 configuration register 25 (cr25) when the device is in extended function mode and efir is 25h, the cr25 register can be accessed through efdr. default = beh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved urbad1 urbad2 urbad3 urbad4 urbad5 urbad6 urbad7 this register is used to select the base address of the uart b from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to access the uart b registers. a[2:0] are don't-care conditions. urbad7-urbad1 (bit 7-bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 8.2.30 configuration register 26 (cr26) when the device is in extended function mode and efir is 26h, the cr26 register can be accessed through efdr. default = 23h if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtdqs0 prtdqs1 prtdqs2 prtdqs3 fdcdqs0 fdcdqs1 fdcdqs2 fdcdqs3 fdcdqs3-fdcdqs0 (bit 7-bit 4): allocate dma resource for fdc. prtdqs3-prtdqs0 (bit 3-bit 0): allocate dma resource for prt.
W83877TF publication release date: march 1998 - 96 - version 0.61 bit 7- bit4, bit 3 - bit 0 dma selected 0000 none 0001 dma_a 0010 dma_b 0011 dma_c 8.2.31 configuration register 27 (cr27) when the device is in extended function mode and efir is 27, the cr27 register can be accessed through efdr. default = 05h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtiqs0 prtiqs1 prtiqs2 prtiqs3 reserved ecpirqx0 ecpirqx1 ecpirqx2 ecpirqx2-ecpirqx0 (bit7-bit 5): these bits are configurable equivalents to bit[5:3] of cnfgb register in ecp mode except that cnfgb[5:3] are read-only bits. they indicate the irq resource assigned for the ecp printer port. it is the software designer's responsibility to ensure that cr27[7:5] and cr27[3:0] are consistent. for example, cr27[7:5] should be filled with 001 (select irq 7) if cr27[3:0] are to be programmed as 0101 (select irq_e) while irq_e is connected to irq 7. cr27[7:5] irq resource 000 reflect other irq resources selected by cr27[3:0] (default) 001 irq 7 010 irq 9 011 irq 10 100 irq 11 101 irq 14 110 irq 15 111 irq 5 bit 4: reserved. prtiqs3-prtiqs0 (bit 3-bit 0): select irq resource for the parallel port. any unselected irq pin is in tri-state.
W83877TF publication release date: march 1998 - 97 - version 0.61 cr27[3:0] select irq pin 0000 none 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h while in the serial irq mode (irqmods=1, cr31 bit2), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are all in tri-state. the parallel port irq is dedicated to the serirq pin. for the host controller to correctly sample the parallel port irq, the parallel port irq should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of prtiqs3-prtiqs0 (bit 3-bit 0) is as follows: prtiqs3-prtiqs0 (bit 3-bit 0): select the irq/data frame sampling period on the serirq pin. cr27[3:0] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 irq12 1101 irq13 1110 irq14 1111 irq15
W83877TF publication release date: march 1998 - 98 - version 0.61 8.2.32 configuration register 28 (cr28) when the device is in extended function mode and efir is 28, the cr28 register can be accessed through efdr. default = 43h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbiqs0 urbiqs1 urbiqs2 urbiqs3 uraiqs0 uraiqs1 uraiqs2 uraiqs3 uraiqs3-uraiqs0 (bit 7-bit 4): allocate interrupt resource for uart a. urbiqs3-urbiqs0 (bit 3-bit 0): allocate interrupt resource for uart b. 8.2.33 configuration register 29 (cr29) when the device is in extended function mode and efir is 29, the cr29 register can be accessed through efdr. default = 62h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 iqniqs0 iqniqs1 iqniqs2 iqniqs3 fdciqs0 fdciqs1 fdciqs2 fdciqs3 fdciqs3-fdciqs0 (bit 7-bit 4): allocate interrupt resource for fdc. iqniqs3-iqniqs0 (bit 3-bit 0): allocate interrupt resource for irqin. 8.2.34 configuration register 2c (cr2c), default=00h when the device is in extended function mode and efir is 2ch, the cr2c register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved clkinsel reserved reserved reserved reserved reserved bit 7 - bit 3 : reserved.
W83877TF publication release date: march 1998 - 99 - version 0.61 clkinsel (bit 2): clock input frequency selection. this pin should be reset/set according the clkin pin. 0 the clock source on clkin pin is 24 mhz.(default) 1 the clock source on clkin pin is 48 mhz. bit 1- bit 0: reserved. 8.2.35 configuration register 2d (cr2d), default=00h when the device is in extended function mode and efir is 2dh, the cr2d register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 drta0 drta1 dis_precomp0 drtb0 drtb1 dis_precomp1 reserved reserved this register controls the data rate selection for fdc. it also controls if precompensation is enabled. bit 7 - bit 6: reserved. dis_precomp1 (bit 5): this bit controls if precompensation is enabled for fdd b. 0 enable precompensation for fdd b 1 disable precompensation for fdd b drtb1, drtb0 (bit 4,3): these two bits combining with data rate selection bits in date rate register select the operational data rate for fdd b as shown in last table. dis_precomp0 (bit 2): this bit controls if precompensation is enabled for fdd a. 0 enable precompensation for fdd a 1 di sable precompensation for fdd a drta1, drta0 (bit 1 - bit 0): these two bits combining with data rate selection bits in date rate register select the operational data rate for fdd a as follows:
W83877TF publication release date: march 1998 - 100 - version 0.61 drive rate table data rate operational data rate drta1 drta0 drate1 drate0 mfm fm 0 0 1 1 1m --- 0 0 0 0 500k 250k 0 0 0 1 300k 150k 0 0 1 0 250k 125k 0 1 1 1 1m --- 0 1 0 0 500k 250k 0 1 0 1 500k 250k 0 1 1 0 250k 125k 1 0 1 1 1m --- 1 0 0 0 500k 250k 1 0 0 1 2m --- 1 0 1 0 250k 125k 8.2.36 configuration register 31 (cr31), default=00h when the device is in extended function mode and efir is 31h, the cr31 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved irqmods reserved sciirq0 sciirq1 sciirq2 sciirq3 sciirq3 ~ sciirq0 (bit 7 - bit 4): the four bits select one irq pin for the sci signal except for dedicated sci signal output pin. any unselected pin is in tri-state.
W83877TF publication release date: march 1998 - 101 - version 0.61 cr31[7:4] mapped irq pin 0000 none (default) 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h while in the serial irq mode (irqmods=1, cr31 bit 2), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are all in tri-state. the sci interrupt output is dedicated to the serirq pin. for the host controller to correctly sample the sci interrupt, the sci interrupt should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of sciiqs3-sciiqs0 (bit 7-bit 4) is as follows: sciiqs3-sciiqs0 (bit 7-bit 4): select the irq/data sampling period on the serirq pin. cr27[7:4] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 irq12 1101 irq13 1110 irq14 1111 irq15 bit 3: reserved.
W83877TF publication release date: march 1998 - 102 - version 0.61 irqmods (bit 2): irq mode selection. the W83877TF supports: (1) legacy isa irq mode or isa irq sharing mode. (2) serial irq mode used in the pci bus. in the legacy isa irq sharing mode, the selected irq pin for the device's irq is defined in the configuration registers cr27 - cr29. in the isa irq sharing mode, configuration register cr18 indicates which irq pin is in the irq sharing mode. 0: legacy isa irq mode or isa irq sharing mode.(default) 1: serial irq mode used in pci bus. bit 1 - bit 0: reserved. 8.2.37 configuration register 32 (cr32), default=00h when the device is in extended function mode and efir is 32h, the cr32 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbpme urapme fdcpme prtpme reserved reserved reserved chippme chippme (bit 7): W83877TF chip power management enable. 0 disable the acpi/legacy and the auto power management functions. 1 enable the acpi/legacy and the auto power management functions. bit 6 - bit 4: reserved. prtpme (bit 3): printer port power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . fdcpme (bit 2): fdc power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. .
W83877TF publication release date: march 1998 - 103 - version 0.61 urapme (bit 1): uart a power management enable. 0 disable and the auto power management function. 1 enable auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . urbpme (bit 0): uart b power management enable. 0 disable the auto power management functions. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . 8.2.38 configuration register 33 (cr33), default=00h when the device is in extended function mode and efir is 33h, the cr33 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved pm1ad2 pm1ad3 pm1ad4 pm1ad5 pm1ad6 pm1ad7 pm1ad7 - pm1ad2 (bit 7 - bit 2): base address of the power management register block pm1. this address is the base address of pm1a_evt_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of the base address should be set to 0 and the based address is in the 16-byte alignment. note that the based address of pm1a_cnt_blk is equal to pm1a_evt_blk + 4, and pm_tmr_blk is equal to pm1a_evt_blk + 8. bit 1 - bit 0: reserved, fixed at 0. 8.2.39 configuration register 34 (cr34), default=00h when the device is in extended function mode and efir is 34h, the cr34 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved gpead1 gpead2 gpead3 gpead4 gpead5 gpead6 gpead7
W83877TF publication release date: march 1998 - 104 - version 0.61 gpead7 - gpead1 (bit7 - bit 1): base address of the power management register block gpe. this address is the base address of gpe0_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the based address is in the 8-byte alignment. note that the base address of gpe1_blk is gpe0_blk + 4. bit 0: reserved, fixed at 0. 8.2.40 configuration register 35 (cr35), default=00h when the device is in extended function mode and efir is 35h, the cr35 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 uracnt0 uracnt1 uracnt2 uracnt3 uracnt4 uracnt5 uracnt6 uracnt7 uracnt7 - uracnt0 (bit 7 - bit 0): uart a idle timer count. this register is used to specify the initial value of uart a idle timer. once uart a enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of uart a reloads this count value and the idle timer counts down. when the timer counts down to zero, uart a enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. note that (1). this register is valid only when the power management function of uart a is enabled, that is, chippme=1 (cr32 bit 7) and urapme=1 (cr32 bit 1), (2). if the register is set to 00h, uart a will remain in the current state(working or sleeping). 8.2.41 configuration register 36 (cr36), default=00h when the device is in extended function mode and efir is 36h, the cr36 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbcnt0 urbcnt1 urbcnt2 urbcnt3 urbcnt4 urbcnt5 urbcnt6 urbcnt7
W83877TF publication release date: march 1998 - 105 - version 0.61 urbcnt7 - urbcnt0 (bit 7 - bit 0): uart b idle timer count. this register is used to specify the initial value of uart b idle timer. once uart b enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of uart b reloads this count value and the idle timer counts down. when the timer counts down to zero, uart b enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of uart b is enabled, that is, chippme=1 (cr32 bit 7) and urbpme=1 (cr32 bit 0), (2). if the register is set to 00h, uart b will remain in the current state(working or sleeping). 8.2.42 configuration register 37 (cr37), default=00h when the device is in extended function mode and efir is 37h, the cr37 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fdccnt0 fdccnt1 fdccnt2 fdccnt3 fdccnt4 fdccnt5 fdccnt6 fdccnt7 fdccnt7 - fdccnt0 (bit 7 - bit 0): fdc idle timer count. this register is used to specify the initial value of fdc idle timer. once fdc enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of fdc reloads this count value and the idle timer counts down. when the timer counts down to zero, fdc enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. note that (1). this register is valid only when the power management function of fdc is enabled, that is, chippme=1 (cr32 bit 7) and fdcpme=1 (cr32 bit 2), (2). if the register is set to 00h, fdc will remain in the current state(working or sleeping).
W83877TF publication release date: march 1998 - 106 - version 0.61 8.2.43 configuration register 38 (cr38), default=00h when the device is in extended function mode and efir is 38h, the cr38 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtcnt0 prtcnt1 prtcnt2 prtcnt3 prtcnt4 prtcnt5 prtcnt6 prtcnt7 prtcnt7 - prtcnt0 (bit 7 - bit 0): printer port idle timer count. this register is used to specify the initial value of the printer port idle timer. once the printer port enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of the printer port reloads this count value and this idle timer counts down. when the timer counts down to zero, printer port enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of the printer port is enabled, that is, chippme=1 (cr32 bit 7) and prtpme=1 (cr32 bit 3), (2). if the register is set to 00h, the printer port will remain in the current state(working or sleeping). 8.2.44 configuration register (cr39), default=00h when the device is in extended function mode and efir is 39h, the cr39 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gsbcnt0 gsbcnt1 gsbcnt2 gsbcnt3 gsbcnt4 gsbcnt5 gsbcnt6 gsbcnt7 gsbcnt7 - gsbcnt0 (bit 7 - bit 0): global stand-by idle timer count. once all devices of the chip (including uart a, uart b, fdc and the printer port) are in the power down state, the power down machine of W83877TF chip loads this register value and counts down. when the timer counts to zero, the whole chip enters the power down state, i.e., sleeping state. if this register is set to 0, the power down function will be invalid. the time resolution of this register value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid when the chippme = 1 (cr32 bit 7), and (2) if the register is set to 00h, W83877TF chip will remain in the current state(working or sleeping).
W83877TF publication release date: march 1998 - 107 - version 0.61 8.2.45 configuration register 3a (cr3a), default=00h when the device is in extended function mode and efir is 3ah, the cr3a register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 upullen smi_en reserved reserved reserved tmin_sel reserved reserved bit 7 - bit 6 : reserved, fixed at 0. tmin_sel (bit 5): time resolution of the auto power machines of all devices. cr35 to cr39 store the initial counts of the devices. 0 one second 1 one minute bit 4 - bit 2: reserved, fixed at 0. smi_en (bit 1): smi output pin enable. while an smi event is raised on the output of the smi logic, this bit determines whether the smi interrupt will be generated on the smi output smi pin and on the serial irq irqser pin while in serial irq mode. 0 disable 1 enable upullen (bit 0): enable the pull up of irqser pin in serial irq mode. 0 disable the pull up of irqser pin. 1 enable the pull up of irqser pin. 8.2.46 configuration register 3b (cr3b), default=00h reserved for testing. should be kept all 0's.
W83877TF publication release date: march 1998 - 108 - version 0.61 8.2.47 configuration register 40 (cr40), default=00h when the device is in extended function mode and efir is 40h, the cr40 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbidlsts uraidlsts fdcidlsts prtidlsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' idle status. these bits indicate that the individual device's idle timer expires due to no i/o access, irq, and external input to the device respectively. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines individually. the bits are set/cleared by W83877TF automatically. writing a 1 can also clear this bit, and writing a 0 has no effect. prtidlsts (bit 3): printer port idle status. 0 printer port is now in the working state. 1 printer port is now in the sleeping state due to no printer port access, irq, dma acknowledge, and no transition on busy, ack , pe, slct, and err pins. fdcidlsts (bit 2): fdc idle status. 0 fdc is now in the working state. 1 fdc is now in the sleeping state due to no fdc access, no irq, no dma acknowledge, and no enabling of the motor enable bits in the dor register. uraidlsts (bit 1): uart a idle status. 0 uart a is now in the working state. 1 uart a is now in the sleeping state due to no uart a access, no irq, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on modem control input lines. urbidlsts (bit 0): uart b idle status. 0 uart b is now in the working state. 1 uart b is now in the sleeping state due to no uart b access, no irq, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on modem control input lines.
W83877TF publication release date: march 1998 - 109 - version 0.61 8.2.48 configuration register 41 (cr41), default=00h when the device is in extended function mode and efir is 41h, the cr41 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbtrapsts uratrapsts fdctrapsts prttrapsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' trap status. these bits indicate that the individual device wakes up due to any i/o access, irq, and external input to the device respectively. the device's idle timer reloads the initial count value from cr35-cr39, depending on which device wakes up. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines individually. the bits are set/cleared by W83877TF automatically. writing a 1 can also clear this bit, and writing a 0 has no effect. prttrapsts (bit 3): printer port trap status. 0 the printer port is now in the sleeping state. 1 the printer port is now in the working state due to any printer port access, any irq, any dma acknowledge, and any transition on busy, ack , pe, slct, and err pins. fdctrapsts (bit 2): fdc trap status. 0 fdc is now in the sleeping state. 1 fdc is now in the working state due to any fdc access, any irq, any dma acknowledge, and any enabling of the motor enable bits in the dor register. uratrapsts (bit 1): uart a trap status. 0 uart a is now in the sleeping state. 1 uart a is now in the working state due to any uart a access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on modem control input lines. urbtrapsts (bit 0): uart b trap status. 0 uart b is now in the sleeping state. 1 uart b is now in the working state due to any uart b access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on modem control input lines.
W83877TF publication release date: march 1998 - 110 - version 0.61 8.2.49 configuration register 42 (cr42), default=n/a when the device is in extended function mode and efir is 42h, the cr42 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqsts urairqsts fdcirqsts prtirqsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : device's irq status . these bits indicate the irq pin status of the individual device respectively. the device's irq status bit is set or cleared at their source device, writing a 1 or 0 has no effect. prtirqsts (bit 3) : printer port irq status. while the irq type of printer port is edge trigger-type, this bit will set and reset immediately. as the software reads this bit, it indicates low level. the software must read the irq status bit in the printer port device register to correctly identify whether the printer port irq occurs. fdcirqsts (bit 2) : fdc irq status. urairqsts (bit 1) : uart a irq status. urbirqsts (bit 0) : uart b irq status. 8.2.50 configuration register 43 (cr43), default=00h when the device is in extended function mode and efir is 43h, the cr43 register can be accessed through efdr. this register is reserved. 8.2.51 configuration register 44 (cr44), default=00h when the device is in extended function mode and efir is 44h, the cr44 register can be accessed through efdr. this register is reserved.
W83877TF publication release date: march 1998 - 111 - version 0.61 8.2.52 configuration register 45 (cr45), default=00h when the device is in extended function mode and efir is 45h, the cr45 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqen urairqen fdcirqen prtirqen reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : enable bits of the smi generation due to the device's irq. these bits enable the generation of an smi interrupt due to any irq of the devices respectively. these 4 bits control the printer port, fdc, uart a, and uart b smi logic's individually. the smi logic output for the irqs is as follows: smi logic output = (urbirqen and urbirqsts) or (urairqen and urairqsts) or (fdcirqen and fdcirqsts) or (prtirqen and prtirqsts) if any device's irq is raised, the corresponding irq status bit in cr42 is set. if the device's enable bit is set and smi_en(in cr3a) and chippme(in cr32) is both set, then smi interrupt occurs on the smi output pin. prtirqen (bit 3): 0 disable the generation of an smi interrupt due to the printer port's irq. 1 enable the generation of an smi interrupt due to the printer port's irq. fdcirqen (bit 2): 0 disable the generation of an smi interrupt due to the fdc's irq. 1 enable the generation of an smi interrupt due to the fdc's irq. urairqen (bit 1): 0 disable the generation of an smi interrupt due to the uart a's irq. 1 enable the generation of an smi interrupt due to the uart a's irq. urbirqen (bit 0): 0 disable the generation of an smi interrupt due to the uart b's irq. 1 enable the generation of an smi interrupt due to the uart b's irq.
W83877TF publication release date: march 1998 - 112 - version 0.61 8.2.53 bit map configuration registers table 8-1: bit map of configuration registers register power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 cr0 0000 0000 0 0 0 0 prtmods1 prtmods0 0 ipd cr1 0000 0000 abchg 0 0 0 0 0 0 0 cr2 0000 0000 0 0 0 0 0 0 0 0 cr3 0011 0000 0 0 eppver 0 0 0 suamidi submidi cr4 0000 0000 prtpwd 0 urapwd urbpwd prttri 0 uratri urbtri cr5 0000 0000 0 0 0 0 ecpfthr3 ecpfthr2 ecpfthr1 ecpfthr0 cr6 0000 0000 0 0 sel4fdd fipurdwn fdcpwd 0 fdctri 0 cr7 0000 0000 fdd d t1 fdd d t0 fdd c t1 fdd c t0 fdd b t1 fdd b t0 fdd a t1 fdd a t0 cr8 0000 0000 0 0 disfddwr swwp media 1 media 0 boot 1 boot 0 cr9 0000 1010 prtmods2 lockreg en3mode 0 chip id 3 chip id 2 chip id 1 chip id 0 cra 0000 0000 0 0 0 0 0 0 0 0 crb 0000 1100 0 tx4wc rx4wc enifchg ident mfm invertz drv2en crc 0010 1000 tura turb hefere 0 urirsel 0 rx2inv tx2inv crd 1010 0011 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 cr10 0000 0000 gio0ad7 gio0ad6 gio0ad5 gio0ad4 gio0ad3 gio0ad2 gio0ad1 gio0ad0 cr11 0000 0000 g0cadm1 g0cadm0 0 0 0 gio0ad10 gio0ad9 gio0ad8 cr12 0000 0000 gio1ad7 gio1ad6 gio1ad5 gio1ad4 gio1ad3 gio1ad2 gio1ad1 gio1ad0 cr13 0000 0000 g1cadm1 g1cadm0 0 0 0 gio1ad10 gio1ad9 gio1ad8 cr14 0000 0000 giop0md2 giop0md1 giop0md0 gio0csh gcs0ior gcs0iow gda0opi gda0ipi cr15 0000 0000 giop1md2 giop1md1 giop1md0 gio1csh gcs1ior gcs1iow gda1opi gda1ipi cr16 00ss 0s0s 1 0 0 g1iqsel g0iqsel 0 pnpcvs 0 hefras cr17 0000 0000 0 0 0 prirqod dsfdlgrq dsprlgrq dsualgrq dsublgrq cr18 0000 0000 sharh sharg sharf share shard sharc sharb shara cr19 0000 0000 0 0 0 0 0 0 fasta fastb cr20 1111 1100 2 fdcad7 fdcad6 fdcad5 fdcad4 fdcad3 fdcad2 0 0 cr23 1101 1110 2 prtad7 prtad6 prtad5 prtad4 prtad3 prtad2 prtad1 prtad0 cr24 1111 1110 2 uraad7 uraad6 uraad5 uraad4 uraad3 uraad2 uraad1 0 cr25 1011 1110 2 urbad7 urbad6 urbad5 urbad4 urbad3 urbad2 urbad1 0 cr26 0010 0011 2 fdcdqs3 fdcdqs2 fdcdqs1 fdcdqs0 prtdqs3 prtdqs2 prtdqs1 prtdqs0 cr27 0000 0101 2 ecpirqx2 ecpirqx1 ecpirqx0 0 prtiqs3 prtiqs2 prtiqs1 prtiqs0 cr28 0100 0011 2 uraiqs3 uraiqs2 uraiqs1 uraiqs0 urbiqs3 urbiqs2 urbiqs1 urbiqs0 cr29 0110 0000 2 fdciqs3 fdciqs2 fdciqs1 fdciqs0 iqniqs3 iqniqs2 iqniqs1 iqniqs0 cr2c 0000 0000 0 0 0 0 0 clkinsel 0 0 cr2d 0000 0000 0 0 dis-precom1 drtb 1 drtb 0 dis-precom0 drta 1 drta 0 cr31 0000 0s00 sciirq3 sciirq2 sciirq1 sciirq0 0 irqmods 0 0 cr32 0000 0000 chippme 0 0 0 prtpme fdcpme urapme urbpme cr33 0000 0000 pm1ad7 pm1ad6 pm1ad5 pm1ad4 pm1ad3 pm1ad2 0 0 cr34 0000 0000 gpead7 gpead6 gpead5 gpead4 gpead3 gpead2 gpead1 0 cr35 0000 0000 uracnt7 uracnt6 uracnt5 uracnt4 uracnt3 uracnt2 uracnt1 uracnt0 cr36 0000 0000 urbcnt7 urbcnt6 urbcnt5 urbcnt4 urbcnt3 urbcnt2 urbcnt1 urbcnt0 cr37 0000 0000 fdccnt7 fdccnt6 fdccnt5 fdccnt4 fdccnt3 fdccnt2 fdccnt1 fdccnt0 cr38 0000 0000 prtcnt7 prtcnt6 prtcnt5 prtcnt4 prtcnt3 prtcnt2 prtcnt1 prtcnt0 cr39 0000 0000 gsbcnt7 gsbcnt6 gsbcnt5 gsbcnt4 gsbcnt3 gsbcnt2 gsbcnt1 gsbcnt0 cr3a 0000 0000 0 0 tmin_sel 0 0 0 smi_en upullen cr40 0000 0000 0 0 0 0 prtidlsts fdcidlsts uraidlsts urbidlsts cr41 0000 0000 0 0 0 0 prttrapsts fdctrapsts uratrapsts urbtrapsts cr42 0000 0000 0 0 0 0 prtirqsts fdcirqsts urairqsts urbirqsts cr43 0000 0000 0 0 0 0 0 0 0 0 cr44 0000 0000 0 0 0 0 0 0 0 0 cr45 0000 0000 0 0 0 0 prtirqen fdcirqen urairqen urbirqen notes: 1. 's' means its value depends on corresponding power-on setting pin. 2. these default values are valid when cr16 bit 2 is 1 during power-on reset; they will be all 0's if cr16 bit 2 is 0.
W83877TF publication release date: march 1998 - 113 - version 0.61 8.3 acpi registers features W83877TF supports both the acpi and legacy power management's. the switch logic of the power management block generates an smi interrupt in the legacy mode and an sci interrupt in the acpi mode. for the legacy mode, the smi_en bit is used. if it is set, it routes the power management events from the smi interrupt logic to the smi output pin. for the acpi mode, the sci_en bit is used. if it is set, it route the power management events to the sci interrupt logic. the smi_en bit is located in the cr3a register and the sci_en bit is located in the pm1 register block. see the following figure for illustration. pm timer device idle timers device trap timer smi logic smi_en smi output logic sci output logic sleep/wake state machine wak_sts clock control sci smi sci logic global stby sci events 0 1 sci_en smi events irqs irqs irqs the smi interrupt is routed to pin smi , which is dedicated for the smi interrupt output. another way to output the smi interrupt is to route to pin irqser, which is the signal pin in the serial irq mode. the sci interrupt is routed to pin sci , which is dedicated for the sci function. the other way to output the sci interrupt is to route to one interrupt request signal pin irqa~h, which is selected through cr31 bit[7:4]. another way is output the sci interrupt is to route to pin irqser.
W83877TF publication release date: march 1998 - 114 - version 0.61 8.3.1 smi to sci/sci to smi and bus master for the process of generating an interrupt from smi to sci or from sci to smi, see the following figure for illustration. bios_rls gbl_en from sci to smi gbl_rls bios_en bus master sci bm_cntpl bm_rld clear set bm_sts to sci logic to smi logic to sci logic from smi to sci clear set clear set gbl_sts bios_sts : status bit : enable bit for the bios software to raise an event to the acpi software, bios_rls, gbl_en, and gbl_sts bits are involved. gbl_en is the enable bit and the gbl_sts is the status bit. both are controlled by the acpi software. if bios_rls is set by the bios software and gbl_en is set by the acpi software, an sci interrupt is raised. writing a 1 to bios_rls sets it to logic 1 and also sets gbl_sts to logic 1; writing a 0 to bios_rls has no effect. writing a 1 to gbl_sts clears it to logic 0 and also clears bios_rls to logic 0; writing a 0 to gbl_sts has no effect. for the acpi software to raise an event to the bios software, gbl_rls, bios_en, and bios_sts bits are involved. bios_en is the enable bit and the bios_sts is the status bit. both are controlled by the bios software. if gbl_rls is set by the acpi software and bios_en is set by the bios software, an smi is raised. writing a 1 to gbl_rls sets it to logic 1 and also sets bios_sts to logic 1; writing a 0 to gbl_rls has no effect. writing a 1 to bios_sts clears it to logic 0 and also clears gbl_rls to logic 0; writing a 0 to bios_sts has no effect.
W83877TF publication release date: march 1998 - 115 - version 0.61 for the bus master to raise an event to the acpi software, bm_cntrl, bm_rld, and bm_sts bits are involved. both bm_rld and bm_sts are controlled by the acpi software. if bm_cntrl is set by the bios software and bm_rld is set by the acpi software, an sci interrupt is raised. writing a 1 to bm_cntrl sets it to logic 1 and also sets bm_sts to logic 1; writing a 0 to bm_cntrl has no effect. writing a 1 to bm_sts clears it to logic 0 and also clears bm_cntrl to logic 0; writing a 0 to bm_sts has no effect. 8.3.2 power management timer in the acpi specification, it requires a power management timer. the power management timer is a 24-bit fixed rate free running count-up timer that runs off a 3.579545mhz clock. the power management timer has the corresponding status bit (tmr_sts) and enable bit (tmr_en). the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. three registers are used to read the timer value, they are located in the pm1 register block. the power management timer has one enable bit (tmr_on) to turn if on or off. the tmr_on is located in gpe register block. if it is cleared to 0, the power management timer function would not work. there are no timer reset requirements, except that the timer should function after power-up. see the following figure for illustration. to sci logic 24 bit counter bits (23-0) tmr_sts tmr_en tmr_on 3.579545 mhz 24 tmr_val 8.4 acpi registers (acpirs) the acpi register model consists of the fixed register blocks that perform the acpi functions. a register block may be a event register block which deals with acpi events or a control register block which deals with control features. the ordering in the event register block is the status register, followed by the enable register. each event register, if implemented, contains two two register: a status register and an enable register, both in 16-bit size. the status register indicates what defined function needs the acpi system control interrupt (sci). while the hardware event occurs, the defined status bit is set. however, to generate the sci, the associated enable bit is required to be set. if the enable bit is not set, the software can examine the state of the hardware event by reading the status bit without generating an sci interrupt. any status bit, unless otherwise noted, can only be set by some defined hardware event. it is cleared by writing a 1 to its bit position and writing a 0 has no effect. except for some special status bits, every status bit has an associated enable bit in the same bit position in the enable register. those
W83877TF publication release date: march 1998 - 116 - version 0.61 status bits which have no respective enable bit are read for special purposes. revered or un- implemented enable bits always return zero, and writing to these bits should have no effect. the control bit in the control register provides some special control functions over the hardware event, or some special control over sci event. reversed or un-implemented control bits always return zero, and writing to those bits should have no effect. table 8-4 lists the pm1 register block and the relative locations of the registers within it. the base address of pm1 register block is named as pm1a_evt_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of pm1 register block should be set to 0 and the based address is in the 16-byte alignment. table 8-5 lists the gpe register block and the relative locations within it. the base address of power management event block gpe is named as gpe0_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the base address is in the 8-byte alignment. 8.4.1 power management 1 status register 1 (pm1sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_sts reserved reserved reserved bm_sts gbl_sts reserved reserved bit name description 0 tmr_sts this bit is the timer carry status bit. this bit gets set anytime the bit 23 of the 24-bit counter changes(whenever the msb changes from low to high or high to low). while tmr_en and tmr_sts are set a power magnet event is raised. this bit is only set by hardware and can only be cleared by the software writing a 1 to this bit position. writing a 0 has no effect. 1-3 reserved reserved. 4 bm_sts this is the bus master status bit. writing a 1 to bm_cntrl also sets bm_sts. writing a 1 clears this bit and also clears bm_cntrl. writing a 0 has no effect. 5 gbl_sts this is the global status bit. this bit is set when the bios want the attention of the sci handler. bios sets this bit by setting bios_rls and can only be cleared by software writing a 1 to this bit position. writing a 1 to this bit position also clears bios_rls. writing a 0 has no effect. 6-7 reserved reserved. these bits always return a value of zero.
W83877TF publication release date: march 1998 - 117 - version 0.61 8.4.2 power management 1 status register 2 (pm1sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved wak_sts bit name description 0-6 reserved reserved. 7 wak_sts this bit is set when the system is in the sleeping state and an enabled resume event occurs. upon setting this bit, the sleeping/working state machine will transition the system to the working state. this bit is only set by hardware and is cleared by software writing a 1 to this bit position or by the sleeping/working state machine automatically upon the global standby timer expires. writing a 0 has no effect. once the wak_sts is cleared and all devices have been in sleeping state, the whole chip enters the sleeping state. 8.4.3 power management 1 enable register 1(pm1en1) register location: +2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_en reserved reserved reserved gbl_en reserved reserved reserved
W83877TF publication release date: march 1998 - 118 - version 0.61 bit name description 0 tmr_en this is the timer carry interrupt enable bit. when this bit is set then an sci event is generated anytime the tmr_sts bit is set. when this bit is reset then no interrupt is generated when the tmr_sts bit is set. 1-4 reserved reserved. these bits always return a value of zero. 5 gbl_en the global enable bit. when both the gbl_en bit and the gbl_sts bit are set, an sci interrupt is raised. 6-7 reserved reserved. 8.4.4 power management 1 enable register 2 (pm1en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.5 power management 1 control register 1 (pm1ctl1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits
W83877TF publication release date: march 1998 - 119 - version 0.61 1 2 3 4 5 6 7 0 sci_en bm_rld gbl_rld reserved reserved reserved reserved reserved bit name description 0 sci_en selects the power management event to be either an sci or an smi interrupt. when this bit is set, then the power management events will generate an sci interrupt. when this bit is reset and smi_en bit is set, then the power management events will generate an smi interrupt. 1 bm_rld this is the bus master reload enable bit. if this bit is set and bm_cntrl is set, an sci interrupt is raised. 2 gbl_rls the global release bit. this bit is used by the acpi software to raise an event to the bios software. the bios software has a corresponding enable and status bit to control its ability to receive the acpi event. setting gbl_rls sets bios_sts, and it generates an smi interrupt if bios_en is also set. 3-7 reserved reserved. these bits always return a value of zero. 8.4.6 power management 1 control register 2 (pm1ctl2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero.
W83877TF publication release date: march 1998 - 120 - version 0.61 8.4.7 power management 1 control register 3 (pm1ctl3) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.8 power management 1 control register 4 (pm1ctl4) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero.
W83877TF publication release date: march 1998 - 121 - version 0.61 8.4.9 power management 1 timer 1 (pm1tmr1) register location: +8h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val0 tmr_val1 tmr_val2 tmr_val3 tmr_val4 tmr_val5 tmr_val6 tmr_val7 bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 8.4.10 power management 1 timer 2 (pm1tmr2) register location: +9h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val8 tmr_val9 tmr_val10 tmr_val11 tmr_val12 tmr_val13 tmr_val14 tmr_val15
W83877TF publication release date: march 1998 - 122 - version 0.61 bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 8.4.11 power management 1 timer 3 (pm1tmr3) register location: +ah system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val16 tmr_val17 tmr_val18 tmr_val19 tmr_val20 tmr_val21 tmr_val22 tmr_val23 bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt.
W83877TF publication release date: march 1998 - 123 - version 0.61 8.4.12 power management 1 timer 4 (pm1tmr4) register location: +bh system i /o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.13 general purpose event 0 status register 1 (gp0sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscists urascists fdcscists prtscists reserved reserved reserved reserved these bits indicate the status of the sci input, which is set when the device's irq is raised. if the corresponding enable bit in the sci interrupt enable register (in gp0en1) is set, an sci interrupt is raised and routed to the output pin. writing a 1 clears the bit, and writing a 0 has no effect. if the bit is not cleared, new irq for the sci logic input is ignored, therefore no sci interrupt is raised. bit name description 0 urbscists uart b sci status, which is set by the uart b irq. 1 urascists uart a sci status, which is set by the uart a irq. 2 fdcscists fdc sci status, which is set by the fdc irq. 3 prtscists prt sci status, which is set by the printer port irq. 4-7 reserved reserved.
W83877TF publication release date: march 1998 - 124 - version 0.61 8.4.14 general purpose event 0 status register 2 (gp0sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.15 general purpose event 0 enable register 1 (gp0en1) register location: +2h system i/o space default value: 00 h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscien urascien fdcscien prtscien reserved reserved reserved reserved these bits are used to enable the device's irq sources onto the sci logic. the sci logic output for the irqs is as follows: sci logic output = (urbscien and urbscists) or (urascien and urascists) or (fdcscien and fdcscists) or (prtscien and prtscists)
W83877TF publication release date: march 1998 - 125 - version 0.61 bit name description 0 urbscien uart b sci enable, which controls the uart b irq for sci. 1 urascien uart a sci enable, which controls the uart a irq for sci. 2 fdcscien fdc sci enable, which controls the fdc irq for sci. 3 prtscien printer port sci enable, which controls the printer port irq for sci. 4-7 reserved reserved. 8.4.16 general purpose event 0 enable register 2 (gp0en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.17 general purpose event 1 status register 1 (gp1sts1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits
W83877TF publication release date: march 1998 - 126 - version 0.61 1 2 3 4 5 6 7 0 bios_sts reserved reserved reserved reserved reserved reserved reserved bit name description 0 bios_sts the bios status bit. this bit is set when gbl_rls is set. if bios_en is set, setting gbl_rls will raise an smi event. writing a 1 to its bit location clears bios_sts and also clears gbl_rls. writing a 0 has no effect. 1-7 reserved reserved. 8.4.18 general purpose event 1 status register 2 (gp1sts2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 8.4.19 general purpose event 1 enable register 1 (gp1en1) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits
W83877TF publication release date: march 1998 - 127 - version 0.61 1 2 3 4 5 6 7 0 bios_en tmr_on reserved reserved reserved reserved reserved reserved bit name description 0 bios_en this bit is raise the smi event. when this bit is set and the acpi software writes a 1 to the gbl_rls bit, an smi event is raised on the smi logic output. 1 tmr_on this bit is used to turn on the power management timer. 1: timer on ; 0: timer off. 2-7 reserved reserved. 8.4.20 general purpose event 1 enable register 2 (gp1en2) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_rls bm_cntrl reserved reserved reserved reserved reserved reserved bit name description 0 bios_rls the bios release bit. this bit is used by the bios software to raise an event to the acpi software. the acpi software has a corresponding enable and status bit to control its ability to receive the acpi event. setting bios_rls sets gbl_sts, and it generates an sci interrupt if gbl_en is also set. writing a 1 to its bit position sets this bit and also sets the bm_sts bit. writing a 0 has no effect. this bit is cleared by writing a 1 to the gbl_sts bit. 1 bm_cntrl this bit is used to set the bm_sts bit and if the bm_rld bit is also set, then an sci interrupt is generated. writing a 1 sets bm_cntrl to 1 and also sets bm_sts. writing a 0 has no effect. writing a 1 to bm_sts clears bm_sts and also clears bm_cntrl. 2-7 reserved reserved.
W83877TF publication release date: march 1998 - 128 - version 0.61 8.4.21 bit map configuration registers table 8-4: bit map of pm1 register block register address power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 pm1sts1 0000 0000 0 0 gbl_sts bm_sts 0 0 0 tmr_sts pm1sts2 +1h 0000 0000 wak_sts 0 0 0 0 0 0 0 pm1en1 +2h 0000 0000 0 0 gbl_en 0 0 0 0 tmr_en pm1en2 +3h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl1 +4h 0000 0000 0 0 0 0 0 gbl_rls bm_rld sci_en pm1ctl2 +5h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl3 +6h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl4 +7h 0000 0000 0 0 0 0 0 0 0 0 pm1tmr1 +8h 0000 0000 tmr_val7 tmr_val6 tmr_val5 tmr_val4 tmr_val3 tmr_val2 tmr_val1 tmr_val0 pm1tmr2 +9h 0000 0000 tmr_val15 tmr_val14 tmr_val13 tmr_val12 tmr_val11 tmr_val10 tmr_val9 tmr_val8 pm1tmr3 +ah 0000 0000 tmr_val23 tmr_val22 tmr_val21 tmr_val20 tmr_val19 tmr_val18 tmr_val17 tmr_val16 pm1tmr4 +bh 0000 0000 0 0 0 0 0 0 0 table 8-5: bit map of gpe register block register address power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 gp0sts1 0000 0000 0 0 0 0 prtscists fdcscists urascists urbscists gp0sts2 +1h 0000 0000 0 0 0 0 0 0 0 0 gp0en1 +2h 0000 0000 0 0 0 0 prtscien fdcscien urascien urbscien gp0en2 +3h 0000 0000 0 0 0 0 0 0 0 0 gp1sts1 +4h 0000 0000 0 0 0 0 0 0 0 bios_sts gp1sts2 +5h 0000 0000 0 0 0 0 0 0 0 0 gp1en1 +6h 0000 0000 0 0 0 0 0 0 tmr_on bios_en gp1en2 +7h 0000 0000 0 0 0 0 0 0 bm_cntrl bios_rls


▲Up To Search▲   

 
Price & Availability of W83877TF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X